Skip to content

Commit

Permalink
Organizing Interface Module
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankopf committed Aug 3, 2023
1 parent 6e35999 commit f59a235
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"rust-analyzer.linkedProjects": [
".\\Cargo.toml"
]
}
9 changes: 9 additions & 0 deletions src/interface.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
use crate::prelude::*;
mod info_panel;
pub use info_panel::*;
mod game_ui;
pub use game_ui::*;
mod click;
pub use click::*;
mod input;
pub use input::*;
4 changes: 2 additions & 2 deletions src/click.rs → src/interface/click.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::prelude::*;
use super::selection_systems::SelectionEvent;
use crate::prelude::*;
use crate::selection_systems::SelectionEvent;

// Make plugin.
pub struct ClickPlugin;
Expand Down
2 changes: 1 addition & 1 deletion src/game_ui.rs → src/interface/game_ui.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use super::prelude::*;
use crate::prelude::*;

// Create plugin.
pub struct GameUiPlugin;
Expand Down
2 changes: 1 addition & 1 deletion src/info_panel.rs → src/interface/info_panel.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use super::prelude::*;
use crate::prelude::*;

// Create plugin.
pub struct InfoPanelPlugin;
Expand Down
File renamed without changes.
5 changes: 1 addition & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@ use crate::task_system::{HALF_SECOND, TWO_SECOND};
#[mod_use(
biome,
button_system,
click,
components,
constants,
game_ui,
info_panel,
input,
interface,
load,
main_menu,
map,
Expand Down

0 comments on commit f59a235

Please sign in to comment.