mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Add configurable team selection for #44
This commit is contained in:
@@ -42,6 +42,7 @@ pub trait ConfigProvider<C: Clone> {
|
||||
fn promo_codes(&self) -> std::collections::HashMap<String, PromoCode>;
|
||||
fn vehicle_validation(&self) -> VehicleValidators;
|
||||
fn garage_slot_limit(&self) -> i32;
|
||||
fn team_choosers(&self) -> TeamChoosers;
|
||||
}
|
||||
|
||||
pub struct DevMessageProvider<C: Clone> {
|
||||
@@ -547,3 +548,10 @@ pub struct VehicleValidators {
|
||||
pub singleplayer: crate::persist::VehicleValidator,
|
||||
pub campaigns: std::collections::HashMap<String, crate::persist::VehicleValidator>,
|
||||
}
|
||||
|
||||
pub struct TeamChoosers {
|
||||
pub battle_arena: crate::persist::TeamChooser,
|
||||
pub elimination: crate::persist::TeamChooser,
|
||||
pub pit: crate::persist::TeamChooser,
|
||||
pub team_deathmatch: crate::persist::TeamChooser,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user