Documentation ¶
Index ¶
Constants ¶
View Source
const HeaderSize = 5
Variables ¶
View Source
var CurrentProtocolVersion = uint8(0)
View Source
var Sessions = &sessionList{}
Functions ¶
This section is empty.
Types ¶
type LoginRequest ¶
type LoginRequest struct {
CharacterName string
}
type LoginResponse ¶
type NetworkSerializable ¶
type NetworkSerializable interface { // NetworkWrite Writes the object for transport over the network NetworkWrite(stream *nivio.Writer) error // NetworkRead Reads the object from the network NetworkRead(stream *nivio.Reader) error }
NetworkSerializable objects can be wrote to and read from the network
type PlayerActionRequest ¶
func (*PlayerActionRequest) NetworkRead ¶
func (playerActionRequest *PlayerActionRequest) NetworkRead(stream *nivio.Reader) error
NetworkRead should have inherited the comment from the interface but because there is no way to know which interface it came from, it wants another comment. So here that it. Yay.
func (*PlayerActionRequest) NetworkWrite ¶
func (playerActionRequest *PlayerActionRequest) NetworkWrite(stream *nivio.Writer) error
NetworkWrite should have inherited the comment from the interface but because there is no way to know which interface it came from, it wants another comment. So here that it. Yay.
type PlayerActionResponse ¶
type PlayerActionResponse struct { ClientCommandID uint8 Result interface{} }
type Server ¶
type Server interface { HandleSessionConnections() WaitForInterrupt() EnqueueMessage(envelope Envelope) }
type Session ¶
type Session struct { Conn net.Conn Authenticated bool SessionID uuid.UUID EntityID uuid.UUID Created time.Time }
func SessionFor ¶
type SessionNotFoundError ¶
func (SessionNotFoundError) Error ¶
func (e SessionNotFoundError) Error() string
type ZoneReport ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.