diff options
author | metamuffin <metamuffin@disroot.org> | 2024-07-11 13:48:42 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-07-11 13:48:42 +0200 |
commit | ae29ca99dde89f8b975ce7b3a716411ab2028e50 (patch) | |
tree | 0ecd0107dda055f9e5f4391d1df545f662a98920 /test-client | |
parent | 42900ac1c14712f181a9719a85d9df879e15ef29 (diff) | |
download | hurrycurry-ae29ca99dde89f8b975ce7b3a716411ab2028e50.tar hurrycurry-ae29ca99dde89f8b975ce7b3a716411ab2028e50.tar.bz2 hurrycurry-ae29ca99dde89f8b975ce7b3a716411ab2028e50.tar.zst |
send map metadata
Diffstat (limited to 'test-client')
-rw-r--r-- | test-client/protocol.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test-client/protocol.ts b/test-client/protocol.ts index ddbc43c8..10b5b2dc 100644 --- a/test-client/protocol.ts +++ b/test-client/protocol.ts @@ -20,13 +20,19 @@ export type PlayerID = number export type ItemIndex = number export type TileIndex = number +export interface MapMetadata { + name: string, + players: number, + difficulty: number, +} + export interface Gamedata { item_names: string[], // Look-up table for ItemIndex tile_names: string[], // Look-up table for TileIndex tile_collide: boolean[], // Look-up table for TileIndex to check tile collision with players tile_interact: boolean[], // Look-up table for TileIndex to check if a tile is interactable spawn: Vec2, // Where players spawn when they join. - map_names: string[], + maps: { [key: string]: MapMetadata }, } export type PacketS = |