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

@@ -176,3 +176,24 @@ impl std::convert::Into<crate::data::garage_bay::ControlOptions> for GarageContr
}
}
}
#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct PrefabVehicle {
pub name: Option<String>,
pub username: String,
#[serde(flatten)]
pub id: PrefabId,
}
#[derive(Serialize, Deserialize, Clone, Debug)]
#[serde(untagged)]
pub enum PrefabId {
Factory {
#[serde(alias="crf")]
factory: u32,
},
Database {
garage: u32,
},
// TODO File, Raw
}