1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Add minimum matchmaking lobby server

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

View File

@@ -1,20 +0,0 @@
#[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 _),
}
}
}

View File

@@ -23,8 +23,8 @@ pub mod player_rank;
pub mod quest;
//pub use oj_rc_core::data::auto_regen;
//pub use oj_rc_core::data::voting;
pub mod lobby;
pub use oj_rc_core::data::error_codes;
//pub use oj_rc_core::data::lobby;
//pub use oj_rc_core::data::error_codes;
//pub use oj_rc_core::data::game_mode;
pub mod score_multipliers;
//pub use oj_rc_core::data::campaign;