Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProtocolRequest byte = iota ProtocolResponse ServerDisconnect ConnectSuccess ConnectFailure HandshakeChallenge ChatReceive UniverseTimeUpdate CelestialResponse WarpResult PlanetType Pause ClientDisconnectRequest ClientConnect HandshakeResponse PlayerWarp FlyShip ChatSend CelestialRequest ClientContextUpdate WorldStart WorldStop WorldLayoutUpdate WorldParametersUpdate CentralStructureUpdate TileArrayUpdate TileUpdate TileLiquidUpdate TileDamageUpdate TileModificationFailure GiveItem EnvironmentUpdate UpdateTileProtection SetDungeonGravity SetDungeonBreathable SetPlayerStart FindUniqueEntityResponse ModifyTileList DamageTileGroup CollectLiquid RequestDrop SpawnEntity ConnectWire DisconnectAllWires WolrdClientStateUpdate FindUniqueEntity WorldStartAcknowledge EntityCreate EntityUpdateSet EntityDestroy EntityInteract EntityInteractResult HitResult DamageRequest DamageNotification EntityMessage EntityMessageResponse UpdateWorldProperties StepUpdate SystemWorldStart SystemWorldUpdate SystemObjectCreate SystemObjectDestroy SystemShipCreate SystemShipDestroy SystemObjectSpawn )
Variables ¶
This section is empty.
Functions ¶
func WritePacket ¶
Types ¶
type BasePacket ¶
func ReadPacket ¶
type ConnectFailurePacket ¶
type ConnectFailurePacket struct {
Execuse String
}
func (*ConnectFailurePacket) Pack ¶
func (r *ConnectFailurePacket) Pack(e byteorder.ByteOrder) (*BasePacket, error)
type ProtocolRequestPacket ¶
type ProtocolRequestPacket struct {
Version uint32
}
func (*ProtocolRequestPacket) Pack ¶
func (r *ProtocolRequestPacket) Pack(e byteorder.ByteOrder) (*BasePacket, error)
type ProtocolResponsePacket ¶
type ProtocolResponsePacket struct {
Available bool
}
func (*ProtocolResponsePacket) Pack ¶
func (r *ProtocolResponsePacket) Pack(e byteorder.ByteOrder) (*BasePacket, error)
Click to show internal directories.
Click to hide internal directories.