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Заметка |
|---|---|---|
Hello | 1 | client → host: protocol version, player name. |
Welcome | 2 | host → client: assigned player index, seed, join stream size. |
JoinChunk | 3 | host → client: one chunk of the compressed full-state stream (join in progress). |
Input | 4 | client → host: input for a tick. |
Snapshot | 5 | host → client: players, trucks, inventories, quests, dialog, drops. On change, and at least once a second. |
Enemies | 6 | host → client: 10 Hz quantized enemy delta against the last acked baseline. |
EnemiesAck | 7 | client → host: last enemy snapshot sequence received (sets the delta baseline). Reliable. |
Refuse | 8 | host → client: refused (full, version mismatch, ...). Payload: reason string. |
Chat | 9 | client → host: a chat line typed by that client's player (reliable). |
Rename | 10 | client → host: the player's new nickname (reliable). |
RenamePawn | 11 | client → host: rename a crew pawn (index + name). |
AddSeat | 12 | client → host: another person on this machine wants a body (split screen). |
SeatWelcome | 13 | host → client: player index for that extra local seat. |
DropSeat | 15 | client → host: a split-screen seat on this machine was turned off. Their body stays as crew. |
SnapPart | 14 | host → client: one piece of a snapshot that did not fit in a single datagram. |
Motion | 16 | host → client: 30 Hz poses, aim, hull and the moving drops. The quiet world stays on Snapshot. |
Fx | 17 | host → client: shots, sparks, blood and sounds spawned on the host this tick. |
CrewOrder | 18 | client → host: this player's crew or vehicle card order (reliable). |
Redirect | 19 | host → client: this player belongs on another process now. Payload: host string (empty = same machine), port. Reliable. |
Mark | 20 | client → host: the colour of this player's alt mark, packed 0xRRGGBB. Reliable. |