diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-10-16 20:26:42 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-10-16 20:26:42 +0200 |
| commit | ef010d6317dcbf9df84c909bab72c64a6eabacb2 (patch) | |
| tree | aa48301ac95abe7a233e1d7174d9f9f80be37829 /test-client/protocol.ts | |
| parent | e95418c3e146a0a0ea82b7a99b642745c29bba5a (diff) | |
| download | hurrycurry-ef010d6317dcbf9df84c909bab72c64a6eabacb2.tar hurrycurry-ef010d6317dcbf9df84c909bab72c64a6eabacb2.tar.bz2 hurrycurry-ef010d6317dcbf9df84c909bab72c64a6eabacb2.tar.zst | |
Send _list of_ players in progress reports
Diffstat (limited to 'test-client/protocol.ts')
| -rw-r--r-- | test-client/protocol.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test-client/protocol.ts b/test-client/protocol.ts index 521a3cb6..e3becdec 100644 --- a/test-client/protocol.ts +++ b/test-client/protocol.ts @@ -60,7 +60,7 @@ export type PacketC = | { type: "movement_sync", player: PlayerID } // Your movement is difference on the server, you should update your position from a `position` packet | { type: "move_item", from: ItemLocation, to: ItemLocation } // Item moved | { type: "set_item", location: ItemLocation, item?: ItemIndex } // the item contained in a tile or player changed - | { type: "set_progress", item: ItemLocation, position: number, speed: number, warn: boolean, player?: PlayerID } // A tile is doing something. position goes from 0 to 1, speed unit is in 1 per second + | { type: "set_progress", item: ItemLocation, position: number, speed: number, warn: boolean, players: PlayerID[] } // An item is doing something. position goes from 0 to 1, speed unit is in 1 per second | { type: "clear_progress", item: ItemLocation } | { type: "update_map", tile: Vec2, kind: TileIndex | null, neighbors: (TileIndex | null)[] } // A map tile was changed | { type: "flush_map" } |