cleanup
This commit is contained in:
parent
51bd6d3867
commit
cd02873f5b
64
src/actor.rs
64
src/actor.rs
|
@ -118,27 +118,6 @@ pub fn setup(
|
|||
});
|
||||
}
|
||||
|
||||
//#[allow(dead_code)]
|
||||
//pub fn serialize(
|
||||
// world: &mut World,
|
||||
//) {
|
||||
// let mut scene_world = World::new();
|
||||
// scene_world.spawn(ChatBranch {
|
||||
// id: "hialien".to_string(),
|
||||
// name: "Icarus".to_string(),
|
||||
// label: "INTERACT".to_string(),
|
||||
// delay: 0.0,
|
||||
// reply: "Requesting permission to communicate...".to_string(),
|
||||
// goto: "requested".to_string(),
|
||||
// });
|
||||
// let type_registry = world.resource::<AppTypeRegistry>().clone();
|
||||
// scene_world.insert_resource(type_registry);
|
||||
// let type_registry = world.resource::<AppTypeRegistry>();
|
||||
// let scene = DynamicScene::from_world(&scene_world);
|
||||
// let serialized_scene = scene.serialize_ron(type_registry).unwrap();
|
||||
// info!("{}", serialized_scene);
|
||||
//}
|
||||
|
||||
pub fn update(
|
||||
time: Res<Time>,
|
||||
mut query: Query<(&mut LifeForm, &mut Suit)>,
|
||||
|
@ -246,46 +225,3 @@ pub fn handle_conversations(
|
|||
chat.timer = now + branch.delay;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//pub enum SuitSystemHandler {
|
||||
// Heat,
|
||||
// None,
|
||||
//}
|
||||
//#[derive(Component)]
|
||||
//pub struct SuitSystem {
|
||||
// pub name: String,
|
||||
// pub active: bool,
|
||||
// pub power: f32,
|
||||
// pub handler: SuitSystemHandler,
|
||||
//}
|
||||
//
|
||||
//impl Default for SuitSystem {
|
||||
// fn default() -> Self {
|
||||
// Self {
|
||||
// name: "Untitled".to_string(),
|
||||
// active: true,
|
||||
// power: 0.0,
|
||||
// handler: SuitSystemHandler::None,
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
//pub fn setup(
|
||||
// mut commands: Commands,
|
||||
// settings: Res<settings::Settings>,
|
||||
//) {
|
||||
// commands.spawn((
|
||||
// Player,
|
||||
// SuitSystem {
|
||||
// name: "HUD".to_string(),
|
||||
// active: settings.hud_active,
|
||||
// power: -0.05,
|
||||
// ..default()
|
||||
// },
|
||||
// SuitSystem {
|
||||
// name: "Heater".to_string(),
|
||||
// handler: SuitSystemHandler::Heat,
|
||||
// ..default()
|
||||
// }
|
||||
// ));
|
||||
//}
|
||||
|
|
Loading…
Reference in a new issue