aboutsummaryrefslogtreecommitdiff
path: root/test-client/protocol.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-26 18:51:21 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-26 18:51:21 +0200
commit731c55b70f6d4c29a8ddaac229272caa4bd30084 (patch)
treef6f3e7894013be126902658ecec893ab155064b7 /test-client/protocol.ts
parent9c7673253f7dcc50d761345c3fdcd0d6d3654f3e (diff)
downloadhurrycurry-731c55b70f6d4c29a8ddaac229272caa4bd30084.tar
hurrycurry-731c55b70f6d4c29a8ddaac229272caa4bd30084.tar.bz2
hurrycurry-731c55b70f6d4c29a8ddaac229272caa4bd30084.tar.zst
refactor environment effects
Diffstat (limited to 'test-client/protocol.ts')
-rw-r--r--test-client/protocol.ts8
1 files changed, 1 insertions, 7 deletions
diff --git a/test-client/protocol.ts b/test-client/protocol.ts
index ef216ffd..bd32e497 100644
--- a/test-client/protocol.ts
+++ b/test-client/protocol.ts
@@ -59,7 +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: "environment", effects: string[] }
| { 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.
@@ -87,9 +87,3 @@ 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