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