Implement basic battle arena functionality #32

This commit is contained in:
NG (Graham) committed 2025-08-30 21:36:01 -04:00
1 parent 1403a6e3d0
commit 7f9ed8bf35
41 files changed
+1836 -327

No files matched your search

+10
View File
@@ -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 {