diff options
author | metamuffin <metamuffin@disroot.org> | 2024-06-20 14:18:14 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-23 19:24:14 +0200 |
commit | d888bd25908ff26712232f1b296f902d37d93d40 (patch) | |
tree | f3623974c5b93684eceab81411e2445086b49d49 /test-client | |
parent | 80039e0e7eb142d51f882a39981fd415ea3f5c54 (diff) | |
download | hurrycurry-d888bd25908ff26712232f1b296f902d37d93d40.tar hurrycurry-d888bd25908ff26712232f1b296f902d37d93d40.tar.bz2 hurrycurry-d888bd25908ff26712232f1b296f902d37d93d40.tar.zst |
doc proto
Diffstat (limited to 'test-client')
-rw-r--r-- | test-client/protocol.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test-client/protocol.ts b/test-client/protocol.ts index f9592ab9..4516d0e5 100644 --- a/test-client/protocol.ts +++ b/test-client/protocol.ts @@ -22,8 +22,8 @@ export type PacketC = | { 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: "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_tile_item", tile: Vec2, item?: ItemIndex } // A tile changed its item + | { type: "set_player_item", player: PlayerID, item?: ItemIndex } // A player changed their 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 |