Field manualСправочник / MechanicsМеханика

MsgKind

src/DustConvoy.Sim/Net/Protocol.cs

Wire protocol shared by every transport (LAN sockets, Steam P2P, in-memory loopback). One byte kind, then kind-specific payload. Poses are 30 Hz. The QuietТихий world is sent when it changes, and at least once a second. Shots and sounds are their own packet. Enemy deltas are 10 Hz. Join chunks and hellos go reliable.

MembersЗначения

NameИмяValueЗначениеNoteЗаметка
Hello1client → host: protocol version, player name.
Welcome2host → client: assigned player index, seed, join stream size.
JoinChunk3host → client: one chunk of the compressed full-state stream (join in progress).
Input4client → host: input for a tick.
Snapshot5host → client: players, trucks, inventories, quests, dialog, drops. On change, and at least once a second.
Enemies6host → client: 10 Hz quantized enemy delta against the last acked baseline.
EnemiesAck7client → host: last enemy snapshot sequence received (sets the delta baseline). Reliable.
Refuse8host → client: refused (full, version mismatch, ...). Payload: reason string.
Chat9client → host: a chat line typed by that client's player (reliable).
Rename10client → host: the player's new nickname (reliable).
RenamePawn11client → host: rename a crew pawn (index + name).
AddSeat12client → host: another person on this machine wants a body (split screen).
SeatWelcome13host → client: player index for that extra local seat.
DropSeat15client → host: a split-screen seat on this machine was turned off. Their body stays as crew.
SnapPart14host → client: one piece of a snapshot that did not fit in a single datagram.
Motion16host → client: 30 Hz poses, aim, hull and the moving drops. The quiet world stays on Snapshot.
Fx17host → client: shots, sparks, blood and sounds spawned on the host this tick.
CrewOrder18client → host: this player's crew or vehicle card order (reliable).
Redirect19host → client: this player belongs on another process now. Payload: host string (empty = same machine), port. Reliable.
Mark20client → host: the colour of this player's alt mark, packed 0xRRGGBB. Reliable.