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

+1 -1
View File
@@ -19,7 +19,7 @@ pub mod item_shop_bundle;
pub mod player_robopass_season;
//pub use rc_core::data::weapon_upgrade;
pub mod player_rank;
pub mod robot_data;
// pub use rc_core::data::robot_data;
pub mod quest;
//pub use rc_core::data::auto_regen;
//pub use rc_core::data::voting;
-23
View File
@@ -1,23 +0,0 @@
use polariton::operation::Typed;
pub struct PrebuiltRobotInfo {
//pub id: String,
pub name: String,
pub class: String,
pub category: String,
pub robot_data: Vec<u8>,
pub colour_data: Vec<u8>,
}
impl PrebuiltRobotInfo {
pub fn as_transmissible(&self) -> Typed {
Typed::HashMap(vec![
//(Typed::Str("[key]".into()), Typed::Str(self.id.clone().into())),
(Typed::Str("Name".into()), Typed::Str(self.name.clone().into())),
(Typed::Str("Class".into()), Typed::Str(self.class.clone().into())),
(Typed::Str("Category".into()), Typed::Str(self.category.clone().into())),
(Typed::Str("RobotData".into()), Typed::Bytes(self.robot_data.clone().into())),
(Typed::Str("ColourData".into()), Typed::Bytes(self.colour_data.clone().into())),
].into())
}
}
@@ -1,7 +1,7 @@
use polariton_server::operations::SimpleFunc;
use polariton::{operation::{Dict, ParameterTable, Typed}, serdes::TypePrefix};
use crate::data::robot_data::*;
use rc_core::data::robot_data::*;
const PARAM_KEY: u8 = 1;