diff options
Diffstat (limited to 'core/src/net/response')
-rw-r--r-- | core/src/net/response/mod.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/src/net/response/mod.rs b/core/src/net/response/mod.rs new file mode 100644 index 0000000..9c9a4cb --- /dev/null +++ b/core/src/net/response/mod.rs @@ -0,0 +1,12 @@ +// Copyright 2022-2024 Gabriel Bjørnager Jensen. + +use crate::net::{Request, SessionToken}; + +use bzipper::{Deserialise, FixedString, Serialise}; + +#[derive(Debug, Deserialise, Serialise)] +pub enum Response { + PlayerJoinAccepted { token: SessionToken }, + + RequestDenied { request: Request, reason: FixedString<0x20> }, +} |