diff options
| author | metamuffin <metamuffin@disroot.org> | 2024-06-20 01:20:51 +0200 | 
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2024-06-23 19:21:49 +0200 | 
| commit | 6f7b995dd9fa3bea95be8c24e2452f015b410839 (patch) | |
| tree | 2c1d2d03a759ee4597a07d5998dae8480bd73a67 /test-client/protocol.ts | |
| parent | 67ccafad4d7d481bdf60be750f96a086ae452e27 (diff) | |
| download | hurrycurry-6f7b995dd9fa3bea95be8c24e2452f015b410839.tar hurrycurry-6f7b995dd9fa3bea95be8c24e2452f015b410839.tar.bz2 hurrycurry-6f7b995dd9fa3bea95be8c24e2452f015b410839.tar.zst | |
change the protocol yet again
Diffstat (limited to 'test-client/protocol.ts')
| -rw-r--r-- | test-client/protocol.ts | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/test-client/protocol.ts b/test-client/protocol.ts index c20588ce..f9592ab9 100644 --- a/test-client/protocol.ts +++ b/test-client/protocol.ts @@ -17,13 +17,13 @@ export type PacketS =  export type PacketC =      { type: "init", id: PlayerID, data: Gamedata } // You joined -    | { type: "add_player", id: PlayerID, name: string, item?: ItemIndex, position: Vec2, character: number } // Somebody else joined (or was already in the game) +    | { type: "add_player", id: PlayerID, name: string, position: Vec2, character: number } // Somebody else joined (or was already in the game)      | { type: "remove_player", id: PlayerID }  // Somebody left      | { type: "position", player: PlayerID, pos: Vec2, rot: number } // Update the position of a players (your own position is included here)      | { type: "take_item", tile: Vec2, player: PlayerID }  // An item was taken from a tile      | { type: "put_item", tile: Vec2, player: PlayerID } // An item was put on a tile -    | { type: "produce_item", tile: Vec2, item: ItemIndex } // A tile generated a new item -    | { type: "consume_item", tile: Vec2 } // A tile removed an item +    | { type: "set_tile_item", tile: Vec2, item?: ItemIndex } // A tile generated a new item +    | { type: "set_player_item", player: PlayerID, item?: ItemIndex } // A tile removed an item      | { type: "set_active", tile: Vec2, progress?: number } // A tile is doing something. progress goes from 0 to 1, then null when finished      | { type: "update_map", pos: Vec2, tile: TileIndex, neighbors: [TileIndex | null] } // A map tile was changed      | { type: "communicate", player: PlayerID, message?: Message } // A map tile was changed | 
