Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodePlayerInput ¶
func EncodePlayerInput()
Types ¶
type BinaryProtocol ¶
type BinaryProtocol struct {
// contains filtered or unexported fields
}
BinaryProtocol ...
func (BinaryProtocol) Decode ¶
func (b BinaryProtocol) Decode(data []byte) model.NetworkMessage
Decode player inputs
func (BinaryProtocol) Encode ¶
func (b BinaryProtocol) Encode(id int, currentGameTime uint32, message *model.NetworkMessage) []byte
Encode data to send to clients
Click to show internal directories.
Click to hide internal directories.