Add configurable team selection for #44

This commit is contained in:
NG (Graham) committed 2026-03-23 21:07:14 -04:00
1 parent 0a93432783
commit 56e4239c08
19 files changed
+214 -26

No files matched your search

+8
View File
@@ -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,
}