Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
regnarock committed Dec 15, 2023
1 parent 66c7213 commit 791d8ff
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/actions/game_control.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use bevy::prelude::{Input, KeyCode, Res};

#[allow(dead_code)]
pub enum GameControl {
Up,
Down,
Expand Down
2 changes: 0 additions & 2 deletions src/actions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/audio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fn start_audio(mut commands: Commands, audio_assets: Res<AudioAssets>, audio: Re
commands.insert_resource(FlyingAudio(handle));
}

fn control_flying_sound(
fn _control_flying_sound(
actions: Res<Actions>,
audio: Res<FlyingAudio>,
mut audio_instances: ResMut<Assets<AudioInstance>>,
Expand Down
2 changes: 1 addition & 1 deletion src/primitives/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ pub fn auto_remove_target_when_out_of_range<S, T>(
}
}

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);
}
Expand Down
6 changes: 3 additions & 3 deletions src/random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
}
}
2 changes: 1 addition & 1 deletion src/turret.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
);
Expand Down

0 comments on commit 791d8ff

Please sign in to comment.