summaryrefslogtreecommitdiff
path: root/core/src/net/response/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/net/response/mod.rs')
-rw-r--r--core/src/net/response/mod.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/src/net/response/mod.rs b/core/src/net/response/mod.rs
index 9c9a4cb..86e7db9 100644
--- a/core/src/net/response/mod.rs
+++ b/core/src/net/response/mod.rs
@@ -1,12 +1,14 @@
// Copyright 2022-2024 Gabriel Bjørnager Jensen.
-use crate::net::{Request, SessionToken};
+use crate::net::{ServerStatus, SessionToken};
use bzipper::{Deserialise, FixedString, Serialise};
#[derive(Debug, Deserialise, Serialise)]
pub enum Response {
- PlayerJoinAccepted { token: SessionToken },
+ JoinAccepted { token: SessionToken },
- RequestDenied { request: Request, reason: FixedString<0x20> },
+ JoinDenied { reason: FixedString<0x20> },
+
+ ServerStatus(ServerStatus),
}