diff options
author | metamuffin <metamuffin@disroot.org> | 2024-09-04 23:41:19 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-09-04 23:41:19 +0200 |
commit | e33e82e87e1e63aa4bc1e599171f61c5c1fa9f15 (patch) | |
tree | 91ffcf384db6b6905369b2337f2da0b3ff32d588 /test-client | |
parent | b93beb93360257c1a2e1330dfb1a2f184c59b879 (diff) | |
download | hurrycurry-e33e82e87e1e63aa4bc1e599171f61c5c1fa9f15.tar hurrycurry-e33e82e87e1e63aa4bc1e599171f61c5c1fa9f15.tar.bz2 hurrycurry-e33e82e87e1e63aa4bc1e599171f61c5c1fa9f15.tar.zst |
player in progress packet
Diffstat (limited to 'test-client')
-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 16cfec2c..9c322a09 100644 --- a/test-client/protocol.ts +++ b/test-client/protocol.ts @@ -53,7 +53,7 @@ export type PacketC = | { type: "movement_sync" } // 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 } // 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, player?: PlayerID } // A tile 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: "communicate", player: PlayerID, message?: Message, timeout?: MessageTimeout } // A player wants to communicate something, message is null when cleared |