Skip to content

Commit

Permalink
cleanup imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sim82 committed Dec 9, 2023
1 parent e17ecf3 commit 0a61ae0
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 17 deletions.
8 changes: 2 additions & 6 deletions src/collision.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
use crate::{
droid::DroidOverloadMarker,
particle::ColorGenerator,
player::{PlayerMarker, PlayerState},
prelude::*,
ship::ShipMarker,
weapon::Projectile,
droid::DroidOverloadMarker, particle::ColorGenerator, player::PlayerMarker, prelude::*,
ship::ShipMarker, weapon::Projectile,
};
use bevy::prelude::*;
use bevy_rapier2d::prelude::*;
Expand Down
3 changes: 1 addition & 2 deletions src/game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ use hexagon_tiles::hexagon::Hex;

use crate::{
droid::{ai::new_shooting_droid_ai, AiDroidBundle, DroidBundle},
player::{PlayerMarker, PlayerState},
player::PlayerMarker,
portal::Portal,
prelude::*,
ship::{ShipBundle, SHIP_VERTICES},
state::GameState,
};

#[derive(Resource)]
Expand Down
1 change: 0 additions & 1 deletion src/input.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::{
droid::{AttackRequest, TargetDirection},
hexton::HextonInput,
player::PlayerState,
portal::PortalToggleRequest,
prelude::*,
ship::ShipInput,
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ use hexagon_tiles::{
point::Point,
};
use menu::MenuState;
use state::GameState;

use crate::{
debug_ui::DebugUiPlugin, game::GamePlugin, hexton::HextonPlugin, menu::MenuPlugin,
particle::ParticlePlugin, player::PlayerPlugin, portal::PortalPlugin, ship::ShipPlugin,
state::StatePlugin, weapon::WeaponPlugin,
particle::ParticlePlugin, player::PlayerPlugin, portal::PortalPlugin, prelude::*,
ship::ShipPlugin, state::StatePlugin, weapon::WeaponPlugin,
};

pub mod collision;
Expand Down Expand Up @@ -290,6 +289,7 @@ pub mod prelude {
pub use crate::collision::CollisionFxType;
pub use crate::colors::*;
pub use crate::particle::{ParticleDirection, ParticleSource};
pub use crate::player::PlayerState;
pub use crate::state::{GameDespawn, GameState};
pub use crate::tiles::{TileCache, TilePos, TileType, TilesState};
pub use crate::tunables::default_stroke;
Expand Down
5 changes: 1 addition & 4 deletions src/menu.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
use bevy::{app::AppExit, prelude::*};

use crate::{
game::GameSpawnInfo,
state::{AutoStart, GameState},
};
use crate::{game::GameSpawnInfo, prelude::*, state::AutoStart};
// Tag component used to tag entities added on the main menu screen
#[derive(Component)]
struct OnMainMenuScreen;
Expand Down
2 changes: 1 addition & 1 deletion src/particle.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::f32::consts::TAU;

use crate::{prelude::*, state::GameState};
use crate::prelude::*;
use bevy::{
diagnostic::{Diagnostic, DiagnosticId, Diagnostics, RegisterDiagnostic},
prelude::*,
Expand Down

0 comments on commit 0a61ae0

Please sign in to comment.