From c6abd497a1fd522e9391a14f8afca9084ab02328 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Wed, 3 Nov 2021 16:04:36 -0400 Subject: [PATCH] Clean up modules and their use statements in the main file --- src/main.rs | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/src/main.rs b/src/main.rs index b135113..65f3b46 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,29 +2,30 @@ use rltk::{GameState, Point, Rltk}; use specs::prelude::*; mod components; -pub use components::*; -mod map; -pub use map::*; -mod player; -use player::*; -mod rect; -pub use rect::Rect; -mod visibility_system; -use visibility_system::VisibilitySystem; -mod monster_ai_system; -use monster_ai_system::MonsterAI; -mod map_indexing_system; -use map_indexing_system::MapIndexingSystem; -mod melee_combat_system; -use melee_combat_system::MeleeCombatSystem; mod damage_system; -use damage_system::DamageSystem; mod gamelog; mod gui; -pub use gamelog::GameLog; mod inventory_system; +mod map; +mod map_indexing_system; +mod melee_combat_system; +mod monster_ai_system; +mod player; +mod rect; mod spawner; +mod visibility_system; + +pub use components::*; +use damage_system::DamageSystem; +pub use gamelog::GameLog; use inventory_system::{ItemCollectionSystem, PotionUseSystem}; +pub use map::*; +use map_indexing_system::MapIndexingSystem; +use melee_combat_system::MeleeCombatSystem; +use monster_ai_system::MonsterAI; +use player::*; +pub use rect::Rect; +use visibility_system::VisibilitySystem; pub const MAP_SIZE: usize = 80 * 50;