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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user