Skip to content

Commit

Permalink
restructure use imports
Browse files Browse the repository at this point in the history
  • Loading branch information
thombruce committed Oct 9, 2023
1 parent 16cc4d6 commit bd929fd
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/astronomy/orbit.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bevy::prelude::*;

use crate::{resources::game_time::GameTime, resources::state::GameState};
use crate::resources::{game_time::GameTime, state::GameState};

const ORBITAL_PERIOD_SCALING_FACTOR: f32 = 1.0;

Expand Down
3 changes: 2 additions & 1 deletion src/astronomy/planetary_system.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use bevy::prelude::*;

use crate::{
hud::indicator::Indicated, resources::assets::SpriteAssets, resources::state::GameState,
hud::indicator::Indicated,
resources::{assets::SpriteAssets, state::GameState},
};

use super::{
Expand Down
21 changes: 12 additions & 9 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,20 @@ mod shaders;
mod ship;

use crate::{
astronomy::planetary_system::PlanetarySystemPlugin,
astronomy::starfield::BackgroundPlugin,
astronomy::{planetary_system::PlanetarySystemPlugin, starfield::BackgroundPlugin},
effects::blink::EffectsPlugin,
hud::HudPlugin,
menus::credits::CreditsPlugin,
menus::pause::PausePlugin,
menus::start_menu::{MenuAction, MenuPlugin},
resources::assets::{AudioAssets, SpriteAssets, UiAssets},
resources::camera::CameraPlugin,
resources::game_time::GameTimePlugin,
resources::state::{GameState, StatePlugin},
menus::{
credits::CreditsPlugin,
pause::PausePlugin,
start_menu::{MenuAction, MenuPlugin},
},
resources::{
assets::{AudioAssets, SpriteAssets, UiAssets},
camera::CameraPlugin,
game_time::GameTimePlugin,
state::{GameState, StatePlugin},
},
ship::ShipPlugin,
};

Expand Down
6 changes: 4 additions & 2 deletions src/menus/pause.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ use leafwing_input_manager::{

use crate::{
effects::blink::DrawBlinkTimer,
resources::assets::UiAssets,
resources::state::{is_in_game_state, ForState, GameState},
resources::{
assets::UiAssets,
state::{is_in_game_state, ForState, GameState},
},
};

#[derive(Actionlike, PartialEq, Eq, Clone, Copy, Hash, Debug, Reflect)]
Expand Down
6 changes: 4 additions & 2 deletions src/menus/start_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ use leafwing_input_manager::{

use crate::{
effects::blink::DrawBlinkTimer,
resources::assets::{AudioAssets, UiAssets},
resources::state::{is_in_menu_state, ForState, GameState},
resources::{
assets::{AudioAssets, UiAssets},
state::{is_in_menu_state, ForState, GameState},
},
};

#[derive(Actionlike, PartialEq, Eq, Clone, Copy, Hash, Debug, Reflect)]
Expand Down

0 comments on commit bd929fd

Please sign in to comment.