diff options
author | metamuffin <metamuffin@disroot.org> | 2024-07-26 18:27:18 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-07-26 18:27:22 +0200 |
commit | 9c7673253f7dcc50d761345c3fdcd0d6d3654f3e (patch) | |
tree | 4a2c8c036f16e97c22767303a20d5be34635ef70 /test-client | |
parent | eb6527dec240c94d8cd27573c96c83cea2618cb3 (diff) | |
download | hurrycurry-9c7673253f7dcc50d761345c3fdcd0d6d3654f3e.tar hurrycurry-9c7673253f7dcc50d761345c3fdcd0d6d3654f3e.tar.bz2 hurrycurry-9c7673253f7dcc50d761345c3fdcd0d6d3654f3e.tar.zst |
add draft weather/environment system
Diffstat (limited to 'test-client')
-rw-r--r-- | test-client/protocol.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test-client/protocol.ts b/test-client/protocol.ts index 432f30e2..ef216ffd 100644 --- a/test-client/protocol.ts +++ b/test-client/protocol.ts @@ -59,6 +59,7 @@ export type PacketC = | { type: "score" } & Score // Supplies information for score OSD | { type: "menu" } & Menu // Open a menu on the client-side | { type: "movement_sync" } // Your movement is difference on the server, you should update your position from a `position` packet + | { type: "update_environment" } & Environment | { type: "set_ingame", state: boolean, lobby: boolean } // Set to false when entering the game or switching maps | { type: "error", message: string } // Your client did something wrong. @@ -86,3 +87,9 @@ export type Message = export type ItemLocation = { player: PlayerID } | { tile: Vec2 } + +export interface Environment { + rain: number, // 0-1; clear..raining + wind: number, // 0-1; still..stormy + time: number, // 0-1; night..morning..noon..evening +}
\ No newline at end of file |