mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Implement basic battle arena functionality #32
This commit is contained in:
1 parent
1403a6e3d0
commit
7f9ed8bf35
41 files changed
+1836
-327
No files matched your search
@@ -185,6 +185,16 @@ pub struct PrefabVehicle {
|
||||
pub id: PrefabId,
|
||||
}
|
||||
|
||||
impl PrefabVehicle {
|
||||
pub(super) fn into_conf(&self) -> super::config::VehicleInfo {
|
||||
crate::persist::config::VehicleInfo {
|
||||
name: self.name.clone(),
|
||||
username: self.username.clone(),
|
||||
id: self.id.clone().into(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||||
#[serde(untagged)]
|
||||
pub enum PrefabId {
|
||||
|
||||
Reference in new issue
Block a user