diff options
author | metamuffin <metamuffin@disroot.org> | 2024-09-18 14:05:34 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-09-18 14:05:34 +0200 |
commit | e5fdbaadbf01f14290e70c49482e1dce3c9816d8 (patch) | |
tree | c2582dd682258867bd5a4e1720dc08beef78f5db /test-client/protocol.ts | |
parent | 33bc7824323149407a2beaeaa0a1e601bccba39a (diff) | |
download | hurrycurry-e5fdbaadbf01f14290e70c49482e1dce3c9816d8.tar hurrycurry-e5fdbaadbf01f14290e70c49482e1dce3c9816d8.tar.bz2 hurrycurry-e5fdbaadbf01f14290e70c49482e1dce3c9816d8.tar.zst |
update documentation
Diffstat (limited to 'test-client/protocol.ts')
-rw-r--r-- | test-client/protocol.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test-client/protocol.ts b/test-client/protocol.ts index 0d2183dd..3bceb351 100644 --- a/test-client/protocol.ts +++ b/test-client/protocol.ts @@ -16,9 +16,9 @@ */ export type Vec2 = [number, number] // x, y -export type PlayerID = number -export type ItemIndex = number -export type TileIndex = number +export type PlayerID = number // opaque number to identify players. +export type ItemIndex = number // index used primarily for item_names in Gamedata +export type TileIndex = number // index used primarily for tile_names in Gamedata export interface MapMetadata { name: string, @@ -32,7 +32,7 @@ export interface Gamedata { 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. - maps: [string, MapMetadata][], + maps: [string, MapMetadata][], // Metadata for most available maps } export type PacketS = |