Rename the game log module
This commit is contained in:
parent
4efce51ded
commit
cb475708c7
@ -1,4 +1,4 @@
|
|||||||
use crate::{gamelog::GameLog, CombatStats, Name, Player, SufferDamage};
|
use crate::{game_log::GameLog, CombatStats, Name, Player, SufferDamage};
|
||||||
use rltk::console;
|
use rltk::console;
|
||||||
use specs::prelude::*;
|
use specs::prelude::*;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
use crate::{gamelog::GameLog, CombatStats, InBackpack, Map, Name, Player, Position, State};
|
use crate::{game_log::GameLog, CombatStats, InBackpack, Map, Name, Player, Position, State};
|
||||||
use rltk::{Point, Rltk, VirtualKeyCode, RGB};
|
use rltk::{Point, Rltk, VirtualKeyCode, RGB};
|
||||||
use specs::prelude::*;
|
use specs::prelude::*;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use crate::{
|
use crate::{
|
||||||
gamelog::GameLog, CombatStats, InBackpack, Name, Position, Potion, WantsToDrinkPotion,
|
game_log::GameLog, CombatStats, InBackpack, Name, Position, Potion, WantsToDrinkPotion,
|
||||||
WantsToDropItem, WantsToPickupItem,
|
WantsToDropItem, WantsToPickupItem,
|
||||||
};
|
};
|
||||||
use specs::prelude::*;
|
use specs::prelude::*;
|
||||||
|
@ -3,7 +3,7 @@ use specs::prelude::*;
|
|||||||
|
|
||||||
mod components;
|
mod components;
|
||||||
mod damage_system;
|
mod damage_system;
|
||||||
mod gamelog;
|
mod game_log;
|
||||||
mod gui;
|
mod gui;
|
||||||
mod inventory_system;
|
mod inventory_system;
|
||||||
mod map;
|
mod map;
|
||||||
@ -17,7 +17,7 @@ mod visibility_system;
|
|||||||
|
|
||||||
pub use components::*;
|
pub use components::*;
|
||||||
use damage_system::DamageSystem;
|
use damage_system::DamageSystem;
|
||||||
pub use gamelog::GameLog;
|
pub use game_log::GameLog;
|
||||||
use inventory_system::{ItemCollectionSystem, ItemDropSystem, PotionUseSystem};
|
use inventory_system::{ItemCollectionSystem, ItemDropSystem, PotionUseSystem};
|
||||||
pub use map::*;
|
pub use map::*;
|
||||||
use map_indexing_system::MapIndexingSystem;
|
use map_indexing_system::MapIndexingSystem;
|
||||||
@ -214,7 +214,7 @@ fn main() -> rltk::BError {
|
|||||||
gs.ecs.insert(Point::new(player_x, player_y));
|
gs.ecs.insert(Point::new(player_x, player_y));
|
||||||
gs.ecs.insert(player_entity);
|
gs.ecs.insert(player_entity);
|
||||||
gs.ecs.insert(RunState::PreRun);
|
gs.ecs.insert(RunState::PreRun);
|
||||||
gs.ecs.insert(gamelog::GameLog {
|
gs.ecs.insert(game_log::GameLog {
|
||||||
entries: vec!["Welcome to Rusty Roguelike".to_string()],
|
entries: vec!["Welcome to Rusty Roguelike".to_string()],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
use crate::{gamelog::GameLog, CombatStats, Name, SufferDamage, WantsToMelee};
|
use crate::{game_log::GameLog, CombatStats, Name, SufferDamage, WantsToMelee};
|
||||||
use specs::prelude::*;
|
use specs::prelude::*;
|
||||||
|
|
||||||
pub struct MeleeCombatSystem {}
|
pub struct MeleeCombatSystem {}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use crate::{
|
use crate::{
|
||||||
gamelog::GameLog, CombatStats, Item, Map, Player, Position, RunState, State, Viewshed,
|
game_log::GameLog, CombatStats, Item, Map, Player, Position, RunState, State, Viewshed,
|
||||||
WantsToMelee, WantsToPickupItem,
|
WantsToMelee, WantsToPickupItem,
|
||||||
};
|
};
|
||||||
use rltk::{Point, Rltk, VirtualKeyCode};
|
use rltk::{Point, Rltk, VirtualKeyCode};
|
||||||
|
Loading…
Reference in New Issue
Block a user