Add minimum matchmaking lobby server

This commit is contained in:
NG (Graham) committed 2025-06-10 20:52:36 -04:00
1 parent 5e2a915892
commit 4baa1ef911
23 files changed
+851 -6

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
#[repr(i8)]
#[derive(Debug)]
pub enum LobbyType {
None = -1,
CustomGame = 1,
QuickPlay = 2,
Solo = 3
}
impl LobbyType {
pub fn from_int(i: i32) -> Result<Self, i16> {
match i {
-1 => Ok(Self::None),
1 => Ok(Self::CustomGame),
2 => Ok(Self::QuickPlay),
3 => Ok(Self::Solo),
_ => Err(super::error_codes::WebServicesError::UnexpectedError as _),
}
}
}
+1
View File
@@ -14,6 +14,7 @@ pub mod crf;
pub mod channel;
pub mod sanction;
pub mod robot_data;
pub mod lobby;
pub mod error_codes;