Versions in this module Expand all Collapse all v0 v0.0.2 Dec 23, 2019 v0.0.1 Dec 23, 2019 Changes in this version + const HeaderSize + var CurrentProtocolVersion = uint8(0) + var Sessions *sessionList + type Asset struct + ID uint + State interface{} + StateLength uint + X uint + Y uint + type Envelope struct + Conn net.Conn + Raw Raw + type Handler interface + HandleConnection func(conn net.Conn) + Send func(envelope Envelope) + type Header struct + Length uint16 + MessageType Type + ProtocolVersion uint8 + func GetHeader(conn net.Conn) Header + func (h Header) Bytes() []byte + type Layer struct + Asset Asset + ID uint8 + type LoginRequest struct + CharacterName string + func (l LoginRequest) Envelope(conn net.Conn) Envelope + type LoginResponse struct + EntityID uuid.UUID + SessionID uuid.UUID + func (l LoginResponse) Envelope(conn net.Conn) Envelope + type NetworkSerializable interface + NetworkRead func(stream *nivio.Reader) error + NetworkWrite func(stream *nivio.Writer) error + type PlayerActionRequest struct + ClientCommandID uint8 + CommandID uint32 + SessionID uuid.UUID + func (playerActionRequest *PlayerActionRequest) NetworkRead(stream *nivio.Reader) error + func (playerActionRequest *PlayerActionRequest) NetworkWrite(stream *nivio.Writer) error + type PlayerActionResponse struct + ClientCommandID uint8 + Result interface{} + type Raw struct + Header Header + MessageBytes []byte + func (r Raw) Bytes() []byte + type Server interface + EnqueueMessage func(envelope Envelope) + HandleSessionConnections func() + WaitForInterrupt func() + type Session struct + Authenticated bool + Conn net.Conn + Created time.Time + EntityID uuid.UUID + SessionID uuid.UUID + func SessionFor(conn net.Conn) Session + type SessionNotFoundError struct + ID uuid.UUID + func (e SessionNotFoundError) Error() string + type Type uint16 + const TypeLoginRequest + const TypeLoginResponse + const TypePlayerActionRequest + const TypePlayerActionResponse + const TypeZoneReport + type ZoneReport struct + Layers []Layer