summaryrefslogtreecommitdiff
path: root/server/src/state.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-01 23:19:41 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-01 23:19:41 +0200
commitf7e2734bc49fd9fa416299599316aded72db5e14 (patch)
tree56a07954e54f204a03c0194555b311dc2d1f88d4 /server/src/state.rs
parent15e5a356f9d27091dbd82d76978fd3fcf5d4d13d (diff)
downloadhurrycurry-f7e2734bc49fd9fa416299599316aded72db5e14.tar
hurrycurry-f7e2734bc49fd9fa416299599316aded72db5e14.tar.bz2
hurrycurry-f7e2734bc49fd9fa416299599316aded72db5e14.tar.zst
tiny map
Diffstat (limited to 'server/src/state.rs')
-rw-r--r--server/src/state.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/src/state.rs b/server/src/state.rs
index 4716d271..bba60108 100644
--- a/server/src/state.rs
+++ b/server/src/state.rs
@@ -28,6 +28,7 @@ enum Command {
Effect {
name: String,
},
+ Reload,
End,
}
@@ -114,6 +115,9 @@ impl State {
self.game
.load(self.index.generate("lobby-none-none".to_string())?, None);
}
+ Command::Reload => {
+ self.index.reload()?;
+ }
Command::Effect { name } => {
self.tx
.send(PacketC::Communicate {