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

Get enemies spawning in singleplayer #23

This commit is contained in:
NG (Graham)
2025-05-30 23:03:02 -04:00
parent 1a7400d3d9
commit 50cc0cc3a9
19 changed files with 327 additions and 54 deletions

View File

@@ -9,7 +9,7 @@ pub struct BattleConfig {
#[serde(default = "default_game_modes")]
pub games: GameModes,
#[serde(default = "default_campaigns")]
pub singleplayer: super::Campaigns,
pub singleplayer: super::SingleplayerConfig,
#[serde(default = "default_rotation")]
pub rotation: GameEventSequence,
}
@@ -252,8 +252,8 @@ fn default_game_modes() -> GameModes {
}
}
fn default_campaigns() -> super::Campaigns {
super::Campaigns {
pub(super) fn default_campaigns() -> super::SingleplayerConfig {
super::SingleplayerConfig {
campaigns: vec![
super::Campaign {
id: "strCampaignModeBattle".to_owned(),
@@ -317,7 +317,24 @@ fn default_campaigns() -> super::Campaigns {
}
],
}
]
],
vehicles: vec![
super::PrefabVehicle {
name: Some("Config your singleplayer!".to_owned()),
username: "NGnius".to_owned(),
id: super::PrefabId::Database { garage: 1 }
},
super::PrefabVehicle {
name: Some("Config your singleplayer!".to_owned()),
username: "NGram".to_owned(),
id: super::PrefabId::Database { garage: 1 }
},
super::PrefabVehicle {
name: Some("Config your singleplayer!".to_owned()),
username: "NGniusness".to_owned(),
id: super::PrefabId::Database { garage: 1 }
},
],
}
}