From 6b40114823cac61a92756af55e06a645a3847426 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 26 Jun 2024 00:51:58 +0200 Subject: clear message --- test-client/protocol.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test-client/protocol.ts') diff --git a/test-client/protocol.ts b/test-client/protocol.ts index f4ffba01..9a78f263 100644 --- a/test-client/protocol.ts +++ b/test-client/protocol.ts @@ -32,7 +32,7 @@ export type PacketS = { type: "join", name: string, character: number } // You join, sent as first packet. | { type: "position", pos: Vec2, rot: number } // Update your position and rotation in radians (0 is -y) | { type: "interact", pos: Vec2, edge: boolean } // Interact with some tile. edge is true when pressing and false when releasing interact button - | { type: "communicate", message: Message } // Send a message + | { type: "communicate", message?: Message } // Send a message | { type: "collide", player: PlayerID, force: Vec2 } // Apply force to another player as a result of a collision export type PacketC = -- cgit v1.2.3-70-g09d2