protocol

package
v0.0.0-...-2525d98 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2020 License: MIT Imports: 3 Imported by: 0

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 NewBinaryProtocol

func NewBinaryProtocol() BinaryProtocol

NewBinaryProtocol ...

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL