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

Use elimination config from file instead of hardcoded #30

This commit is contained in:
NG (Graham)
2025-07-22 22:39:38 -04:00
parent fd11b8746b
commit a904423a83
5 changed files with 23 additions and 9 deletions

View File

@@ -304,6 +304,10 @@ impl <C: Clone + Send> super::ConfigProvider<C> for CubeConfig {
}
}
fn gamemodes(&self) -> crate::data::game_mode::GameModeConfigs {
self.battle.games.clone().into()
}
fn singleplayer_details(&self) -> super::SingleplayerConfig {
self.battle.singleplayer.into_singleplayer_conf()
}

View File

@@ -25,6 +25,7 @@ pub trait ConfigProvider<C: Clone> {
fn cubes(&self) -> &'_ std::collections::HashMap<String, crate::persist::Cube>;
fn chat_system_config(&self) -> ChatSystemConfig;
fn gamemode_events(&self) -> GameEventSequence;
fn gamemodes(&self) -> crate::data::game_mode::GameModeConfigs; // FIXME
fn singleplayer_details(&self) -> SingleplayerConfig;
fn players_per_game(&self) -> usize;
fn is_multiplayer_enabled(&self) -> bool;