diff options
author | metamuffin <metamuffin@disroot.org> | 2024-06-17 00:30:38 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-17 00:30:38 +0200 |
commit | e37231630488e5b54741d68edc45890a62c5610d (patch) | |
tree | 8be6237564176635a7f5d323d1fb5e417f9b8119 /server/src/protocol.rs | |
parent | dd4b88a86a99f028bdfe66fef3c66170629f3cdc (diff) | |
download | hurrycurry-e37231630488e5b54741d68edc45890a62c5610d.tar hurrycurry-e37231630488e5b54741d68edc45890a62c5610d.tar.bz2 hurrycurry-e37231630488e5b54741d68edc45890a62c5610d.tar.zst |
client connects and can speak proto
Diffstat (limited to 'server/src/protocol.rs')
-rw-r--r-- | server/src/protocol.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/protocol.rs b/server/src/protocol.rs index 93d2afe9..dc2af7d6 100644 --- a/server/src/protocol.rs +++ b/server/src/protocol.rs @@ -21,6 +21,7 @@ pub enum PacketS { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(rename_all = "snake_case")] pub enum PacketC { + Joined { id: ID }, AddPlayer { id: ID, name: String }, RemovePlayer { id: ID }, Position { player: ID, pos: Vec2, rot: f32 }, |