Get enemies spawning in singleplayer #23

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

No files matched your search

+21
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
}