From d888bd25908ff26712232f1b296f902d37d93d40 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 20 Jun 2024 14:18:14 +0200 Subject: doc proto --- test-client/protocol.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test-client/protocol.ts') 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 -- cgit v1.2.3-70-g09d2