Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsAction ¶
func ContainsAction(actions []UpsertAction, action UpsertAction) bool
ContainsAction returns true if the given action is contained in the given action set.
Types ¶
type Entry ¶
type Entry struct { ProfileID uuid.UUID Profile profile.GameProfile Listed bool Latency int // in milliseconds GameMode int DisplayName *chat.ComponentHolder // nil-able ShowHat bool ListOrder int RemoteChatSession *chat.RemoteChatSession // nil-able }
type Upsert ¶
type Upsert struct { ActionSet []UpsertAction Entries []*Entry }
type UpsertAction ¶
type UpsertAction interface { Encode(c *proto.PacketContext, wr io.Writer, info *Entry) error Decode(c *proto.PacketContext, rd io.Reader, info *Entry) (err error) }
var ( AddPlayerAction UpsertAction = &addAction{} InitializeChatAction UpsertAction = &initChatAction{} UpdateGameModeAction UpsertAction = &updateGameModeAction{} UpdateListedAction UpsertAction = &updateListedAction{} UpdateLatencyAction UpsertAction = &updateLatencyAction{} UpdateDisplayNameAction UpsertAction = &updateDisplayNameAction{} UpdateListOrderAction UpsertAction = &updateListOrderAction{} UpdateHatAction UpsertAction = &updateHatAction{} UpsertActions = []UpsertAction{ AddPlayerAction, InitializeChatAction, UpdateGameModeAction, UpdateListedAction, UpdateLatencyAction, UpdateDisplayNameAction, UpdateListOrderAction, UpdateHatAction, } )
UpsertActions
Click to show internal directories.
Click to hide internal directories.