diff options
author | metamuffin <metamuffin@disroot.org> | 2024-06-27 17:53:01 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-27 17:53:01 +0200 |
commit | b6713492c6f571ba9897532f129924f438909a07 (patch) | |
tree | 44561d18026ba0bb5ca7a357a6bb007b0637f44e /server/src | |
parent | 5b34f8a894e4214df9efd6d5911b8be2d1c4a8be (diff) | |
download | hurrycurry-b6713492c6f571ba9897532f129924f438909a07.tar hurrycurry-b6713492c6f571ba9897532f129924f438909a07.tar.bz2 hurrycurry-b6713492c6f571ba9897532f129924f438909a07.tar.zst |
fade to black while baking
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/game.rs | 2 | ||||
-rw-r--r-- | server/src/protocol.rs | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/server/src/game.rs b/server/src/game.rs index 4cb5c450..23900559 100644 --- a/server/src/game.rs +++ b/server/src/game.rs @@ -79,6 +79,7 @@ impl Game { } fn unload(&mut self) { + self.packet_out.push_back(PacketC::SetIngame { state: false }); for (id, _) in self.players.drain() { self.packet_out.push_back(PacketC::RemovePlayer { id }) } @@ -196,6 +197,7 @@ impl Game { .map(|d| d.completed) .unwrap_or_default(), }); + out.push(PacketC::SetIngame { state: true }); out } diff --git a/server/src/protocol.rs b/server/src/protocol.rs index 92e2a639..16c379b9 100644 --- a/server/src/protocol.rs +++ b/server/src/protocol.rs @@ -134,6 +134,9 @@ pub enum PacketC { demands_failed: usize, demands_completed: usize, }, + SetIngame { + state: bool, + }, Error { message: String, }, |