diff --git a/src/actions/game_control.rs b/src/actions/game_control.rs index a10d87d..85a9c06 100644 --- a/src/actions/game_control.rs +++ b/src/actions/game_control.rs @@ -1,5 +1,6 @@ use bevy::prelude::{Input, KeyCode, Res}; +#[allow(dead_code)] pub enum GameControl { Up, Down, diff --git a/src/actions/mod.rs b/src/actions/mod.rs index 5e58ae7..f5a7dd8 100644 --- a/src/actions/mod.rs +++ b/src/actions/mod.rs @@ -3,8 +3,6 @@ use bevy::prelude::*; pub mod cursor; mod game_control; -pub const FOLLOW_EPSILON: f32 = 5.; - pub struct ActionsPlugin; // This plugin listens for keyboard input and converts the input into Actions diff --git a/src/audio.rs b/src/audio.rs index 8a58e17..e2590ea 100644 --- a/src/audio.rs +++ b/src/audio.rs @@ -33,7 +33,7 @@ fn start_audio(mut commands: Commands, audio_assets: Res, audio: Re commands.insert_resource(FlyingAudio(handle)); } -fn control_flying_sound( +fn _control_flying_sound( actions: Res, audio: Res, mut audio_instances: ResMut>, diff --git a/src/primitives/view.rs b/src/primitives/view.rs index 51a5be9..6286cd9 100644 --- a/src/primitives/view.rs +++ b/src/primitives/view.rs @@ -140,7 +140,7 @@ pub fn auto_remove_target_when_out_of_range( } } -pub fn debug_range(mut gizmos: Gizmos, views: Query<(&View, &Transform)>) { +pub fn _debug_range(mut gizmos: Gizmos, views: Query<(&View, &Transform)>) { for (view, transform) in &views { gizmos.circle_2d(transform.translation.xy(), view.range, Color::LIME_GREEN); } diff --git a/src/random.rs b/src/random.rs index fbb37e9..f30e78d 100644 --- a/src/random.rs +++ b/src/random.rs @@ -2,7 +2,7 @@ use bevy::prelude::*; use rand::prelude::*; use rand_chacha::ChaCha20Rng; - +#[allow(dead_code)] #[derive(Component)] pub struct RandomDeterministic { pub random: ChaCha20Rng, @@ -23,10 +23,10 @@ impl RandomDeterministic { seed, } } - pub fn reset(&mut self) { + pub fn _reset(&mut self) { *self = Self::new_from_seed(self.seed); } - pub fn get_seed(&self) -> u64 { + pub fn _get_seed(&self) -> u64 { self.seed } } diff --git a/src/turret.rs b/src/turret.rs index 56e6468..52ac9c9 100644 --- a/src/turret.rs +++ b/src/turret.rs @@ -29,7 +29,7 @@ impl Plugin for TurretPlugin { process_enemy_enter_range, process_enemy_exit_range, animate_targeting, - //auto_fire, + auto_fire, ) .run_if(in_state(GameState::Playing)), );