Versions in this module Expand all Collapse all v0 v0.1.0 Jun 14, 2026 Changes in this version + type Ack struct + ConfirmedTick uint64 + type ClientMsg struct + Ack *Ack + Control *Control + Join *JoinReq + Order *order.Order + Ping *Ping + Type MsgType + func DecodeClient(b []byte) (ClientMsg, error) + func (m ClientMsg) Encode() ([]byte, error) + type CommandFrame struct + Orders []order.Order + Tick uint64 + type Control struct + Action string + Paused bool + Rate float64 + Tick uint64 + type HashMsg struct + Hash uint64 + Tick uint64 + type JoinAccept struct + InputDelay int + PlayerSlot int + Seed uint32 + Tick uint64 + TickRate int + type JoinReq struct + MatchID string + PlayerToken string + type MsgType string + const MsgAck + const MsgCommand + const MsgControl + const MsgDiagnose + const MsgHash + const MsgJoin + const MsgJoinAccept + const MsgLeave + const MsgOrder + const MsgPing + const MsgPong + const MsgResync + const MsgSnapshot + type Ping struct + Seq uint64 + type Pong struct + Seq uint64 + ServerTime int64 + type ProjectileSnap struct + Accel fixed.Fixed + AgeSec fixed.Fixed + AoE fixed.Fixed + Closing bool + Damage fixed.Fixed + FromPiece int + Gravity fixed.Fixed + Heading int32 + HomingR fixed.Fixed + ID uint32 + LastDist fixed.Fixed + LaunchY fixed.Fixed + LifeSec fixed.Fixed + Mode uint8 + Model string + OX fixed.Fixed + OY fixed.Fixed + OZ fixed.Fixed + OwnerID uint32 + Phase uint8 + Pitch int32 + Slot int + Speed fixed.Fixed + TX fixed.Fixed + TY fixed.Fixed + TZ fixed.Fixed + TargetID uint32 + TurnAng int32 + VMax fixed.Fixed + VX fixed.Fixed + VY fixed.Fixed + VZ fixed.Fixed + Weapon string + X fixed.Fixed + Y fixed.Fixed + Z fixed.Fixed + type QueuedSnap struct + Kind uint8 + Name string + TX fixed.Fixed + TZ fixed.Fixed + TargetUnit uint32 + type ServerMsg struct + Command *CommandFrame + Control *Control + Hash *HashMsg + JoinAccept *JoinAccept + Pong *Pong + Snapshot *Snapshot + Type MsgType + func DecodeServer(b []byte) (ServerMsg, error) + func (m ServerMsg) Encode() ([]byte, error) + type Snapshot struct + Diagnostic bool + Hash uint64 + Projectiles []ProjectileSnap + RuntimeRng uint32 + Tick uint64 + Units []UnitSnap + type UnitSnap struct + AttackTarget uint32 + AutoEngaged bool + AvoidFlip bool + BuildGateMs int64 + BuildName string + BuildPercent fixed.Fixed + BuildSiteX fixed.Fixed + BuildSiteZ fixed.Fixed + BuildState uint8 + BuildTargetID uint32 + CarriedBy uint32 + Carrying []uint32 + Cob *frame.CobSnapshot + CurIsPatrol bool + Dead bool + FireMode uint8 + HasAttack bool + HasMove bool + HasUnload bool + Heading fixed.Fixed + Health fixed.Fixed + HomeX fixed.Fixed + HomeZ fixed.Fixed + ID uint32 + LoadTarget uint32 + MoveMode uint8 + Name string + ProdQueue []string + ProgressX fixed.Fixed + ProgressZ fixed.Fixed + Queue []QueuedSnap + SelfDAtMs int64 + Side int + Speed fixed.Fixed + StallTicks uint16 + TX fixed.Fixed + TZ fixed.Fixed + UnloadX fixed.Fixed + UnloadZ fixed.Fixed + Weapons [3]WeaponSnap + X fixed.Fixed + Y fixed.Fixed + Z fixed.Fixed + type WeaponSnap struct + HasTarget bool + LastFireMs int64 + PX fixed.Fixed + PY fixed.Fixed + PZ fixed.Fixed + Source string + TargetUnit uint32