From 91875436bc543a46d98d4ee8ee003e50370cd2e3 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 5 Apr 2024 23:42:02 +0200 Subject: [PATCH] cleanup --- src/actor.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/actor.rs b/src/actor.rs index 28c753e..51d4ebe 100644 --- a/src/actor.rs +++ b/src/actor.rs @@ -7,7 +7,6 @@ use crate::{actor, audio, camera, chat, commands, effects, hud, nature, settings pub const ENGINE_SPEED_FACTOR: f32 = 30.0; const MAX_TRANSMISSION_DISTANCE: f32 = 60.0; const MAX_INTERACT_DISTANCE: f32 = 30.0; -const NO_RIDE: u32 = 0; pub struct ActorPlugin; impl Plugin for ActorPlugin { @@ -47,7 +46,6 @@ pub struct Actor { pub id: String, pub name: Option, pub m: f32, // mass - pub inside_entity: u32, pub camdistance: f32, } impl Default for Actor { @@ -56,7 +54,6 @@ impl Default for Actor { id: "".to_string(), name: None, m: 100.0, - inside_entity: NO_RIDE, camdistance: 15.0, } } @@ -81,8 +78,6 @@ impl Default for HitPoints { #[derive(Component)] pub struct Player; // Attached to the suit of the player #[derive(Component)] pub struct PlayerDrivesThis; // Attached to the entered vehicle #[derive(Component)] pub struct PlayerCamera; // Attached to the actor to use as point of view -#[derive(Component)] pub struct PlayerInConversation; -#[derive(Component)] pub struct InConversationWithPlayer; #[derive(Component)] pub struct ActorEnteringVehicle; #[derive(Component)] pub struct ActorVehicleBeingEntered; #[derive(Component)] pub struct WantsMaxRotation(pub f64);