Unused content cleanup

This commit is contained in:
Rendo 2025-11-16 14:43:15 +05:00
commit 782e446c46
2 changed files with 0 additions and 21 deletions

View file

@ -9,7 +9,6 @@ pub mod player;
pub enum Factions {
PlayerFaction,
EnemyFaction,
NeutralFaction,
}
impl Factions {
@ -18,17 +17,10 @@ impl Factions {
Factions::PlayerFaction => match other {
Factions::PlayerFaction => false,
Factions::EnemyFaction => true,
Factions::NeutralFaction => false,
},
Factions::EnemyFaction => match other {
Factions::PlayerFaction => true,
Factions::EnemyFaction => false,
Factions::NeutralFaction => false,
},
Factions::NeutralFaction => match other {
Factions::EnemyFaction => false,
Factions::NeutralFaction => false,
Factions::PlayerFaction => false,
},
}
}

View file

@ -24,19 +24,6 @@ pub struct Velocity {
}
impl Velocity {
pub fn new(
linear_speed: f32,
rotation_speed: f32,
max_linear_speed: f32,
max_rotation_speed: f32,
) -> Velocity {
Velocity {
linear_speed,
rotation_speed,
max_linear_speed: max_linear_speed,
max_rotation_speed: max_rotation_speed,
}
}
pub fn stopped(max_linear_speed: f32, max_rotation_speed: f32) -> Velocity {
Velocity {
linear_speed: 0.,