diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-03-01 22:08:01 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-03-01 22:08:01 +0100 |
| commit | cec40ee1ec236829e774e3f7f82a17d5d5bffcb0 (patch) | |
| tree | a328291ca1bc258adad81995f5115d150d5b074d /server/protocol/src/lib.rs | |
| parent | 74ffa47147d2bb989057b4513075975c44c2bc42 (diff) | |
| download | hurrycurry-cec40ee1ec236829e774e3f7f82a17d5d5bffcb0.tar hurrycurry-cec40ee1ec236829e774e3f7f82a17d5d5bffcb0.tar.bz2 hurrycurry-cec40ee1ec236829e774e3f7f82a17d5d5bffcb0.tar.zst | |
remove nesting in game/server data packets
Diffstat (limited to 'server/protocol/src/lib.rs')
| -rw-r--r-- | server/protocol/src/lib.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/server/protocol/src/lib.rs b/server/protocol/src/lib.rs index db69f6be..f90dd351 100644 --- a/server/protocol/src/lib.rs +++ b/server/protocol/src/lib.rs @@ -221,12 +221,8 @@ pub enum PacketC { Joined { id: PlayerID, }, - ServerData { - data: Box<Serverdata>, - }, - GameData { - data: Box<Gamedata>, - }, + ServerData(Serverdata), + GameData(Gamedata), AddPlayer { id: PlayerID, position: Vec2, |