diff options
author | metamuffin <metamuffin@disroot.org> | 2024-06-19 00:08:13 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-23 19:21:22 +0200 |
commit | 203a4309a762488a4de72123e2f08f229e607e1a (patch) | |
tree | 752e7ffade32c6d66ee02725280c3041e25d6194 /server/src/protocol.rs | |
parent | fe0dd480d6e93098cddc71d596a8d7e61fec68ed (diff) | |
download | hurrycurry-203a4309a762488a4de72123e2f08f229e607e1a.tar hurrycurry-203a4309a762488a4de72123e2f08f229e607e1a.tar.bz2 hurrycurry-203a4309a762488a4de72123e2f08f229e607e1a.tar.zst |
character selection
Diffstat (limited to 'server/src/protocol.rs')
-rw-r--r-- | server/src/protocol.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/src/protocol.rs b/server/src/protocol.rs index 4f04793f..6fe8ccd8 100644 --- a/server/src/protocol.rs +++ b/server/src/protocol.rs @@ -10,7 +10,7 @@ pub type RecipeIndex = usize; #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(rename_all = "snake_case", tag = "type")] pub enum PacketS { - Join { name: String }, + Join { name: String, character: usize }, Leave, Position { pos: Vec2, rot: f32 }, Interact { pos: IVec2, edge: bool }, @@ -26,8 +26,10 @@ pub enum PacketC { }, AddPlayer { id: PlayerID, + position: Vec2, + character: usize, name: String, - hand: Option<ItemIndex>, + item: Option<ItemIndex>, }, RemovePlayer { id: PlayerID, |