Documentation ¶
Index ¶
- type Entity
- func (z *Entity) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *Entity) EncodeMsg(en *msgp.Writer) (err error)
- func (z *Entity) MarshalMsg(b []byte) (o []byte, err error)
- func (z *Entity) Msgsize() (s int)
- func (o *Entity) Serialize(s Serializer) error
- func (z *Entity) UnmarshalMsg(bts []byte) (o []byte, err error)
- type Serializer
- type Status
- func (z *Status) DecodeMsg(dc *msgp.Reader) (err error)
- func (z Status) EncodeMsg(en *msgp.Writer) (err error)
- func (z Status) MarshalMsg(b []byte) (o []byte, err error)
- func (z Status) Msgsize() (s int)
- func (o *Status) Serialize(s Serializer) error
- func (z *Status) UnmarshalMsg(bts []byte) (o []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entity ¶
type Entity struct { Name string Health [2]uint16 Mana [2]uint16 Stamina [2]uint16 Friends []int64 Statuses []Status Dead bool }
func (*Entity) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
func (*Entity) Msgsize ¶
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*Entity) Serialize ¶
func (o *Entity) Serialize(s Serializer) error
type Serializer ¶
type Serializer interface {
Serialize(...interface{}) error
}
type Status ¶
func (Status) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
func (Status) Msgsize ¶
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*Status) Serialize ¶
func (o *Status) Serialize(s Serializer) error
Click to show internal directories.
Click to hide internal directories.