Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinWorldUpdate ¶
type ClientLogin ¶
type ClientLogin struct {
UserId uint64
}
type ClientLoginResp ¶
type ClientLogout ¶
type ClientLogout struct {
UserId uint64
}
type ClientLogoutResp ¶
type WorldUpdate ¶
type WorldUpdate struct { Tick uint16 PlayerTick uint16 UserId uint64 WorldData map[ecs.Id][]ecs.Component // WorldData EntityMap // TODO - might be nice to reduce the BinWorldUpdate to just the entity map Delete []ecs.Id }
TODO - for delta encoding of things that have to be different like ecs.Ids, if you encode the number as 0 then that could indicate that "we needed more bytes to encode the delta"
func (WorldUpdate) MarshalBinary ¶
func (w WorldUpdate) MarshalBinary() ([]byte, error)
func (*WorldUpdate) UnmarshalBinary ¶
func (w *WorldUpdate) UnmarshalBinary(data []byte) error
Click to show internal directories.
Click to hide internal directories.