diff options
| author | metamuffin <metamuffin@disroot.org> | 2024-06-29 18:38:49 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2024-06-29 18:38:49 +0200 |
| commit | 2fa2941485d515e4d51c0ddbc7933e34e953de1f (patch) | |
| tree | 8c44d644d1b1431cad9f80be7d814fa1a5467d6f | |
| parent | 97b157a8ab9db23876ddc703a292159941ec2c7e (diff) | |
| download | hurrycurry-2fa2941485d515e4d51c0ddbc7933e34e953de1f.tar hurrycurry-2fa2941485d515e4d51c0ddbc7933e34e953de1f.tar.bz2 hurrycurry-2fa2941485d515e4d51c0ddbc7933e34e953de1f.tar.zst | |
effect messages
| -rw-r--r-- | server/src/protocol.rs | 1 | ||||
| -rw-r--r-- | test-client/protocol.ts | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/server/src/protocol.rs b/server/src/protocol.rs index 9355f90a..24ac2a11 100644 --- a/server/src/protocol.rs +++ b/server/src/protocol.rs @@ -71,6 +71,7 @@ pub enum PacketS { pub enum Message { Text(String), Item(ItemIndex), + Effect(String), } #[derive(Debug, Clone, Serialize, Deserialize)] diff --git a/test-client/protocol.ts b/test-client/protocol.ts index 28ed6d11..94858387 100644 --- a/test-client/protocol.ts +++ b/test-client/protocol.ts @@ -55,3 +55,4 @@ export type PacketC = export type Message = { item: number } | { text: string } + | { effect: string } |