From 6b6a6720cee7b8662b6c519dc07e9b77332bdc0c Mon Sep 17 00:00:00 2001 From: Alex Bethel Date: Mon, 10 Jan 2022 19:33:45 -0600 Subject: [PATCH] Rename game.rs -> level.rs --- src/{game.rs => level.rs} | 0 src/main.rs | 4 ++-- src/player.rs | 2 +- src/rooms.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename src/{game.rs => level.rs} (100%) diff --git a/src/game.rs b/src/level.rs similarity index 100% rename from src/game.rs rename to src/level.rs diff --git a/src/main.rs b/src/main.rs index 4732cbd..bc3eeb6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,7 @@ use std::process::exit; use components::{register_all, CharRender, MobAction, Mobile, Player, Position, TurnTaker}; -use game::DungeonLevel; +use level::DungeonLevel; use pancurses::{endwin, initscr, noecho, Window}; use player::player_turn; @@ -9,7 +9,7 @@ use specs::prelude::*; use systems::{MobSystem, TimeSystem}; mod components; -mod game; +mod level; mod player; mod rooms; mod systems; diff --git a/src/player.rs b/src/player.rs index 8436b07..c3dad9a 100644 --- a/src/player.rs +++ b/src/player.rs @@ -5,7 +5,7 @@ use specs::prelude::*; use crate::{ components::{CharRender, MobAction, Mobile, Player, Position}, - game::{DungeonLevel, DungeonTile}, + level::{DungeonLevel, DungeonTile}, quit, }; diff --git a/src/rooms.rs b/src/rooms.rs index 49569e4..5da3da2 100644 --- a/src/rooms.rs +++ b/src/rooms.rs @@ -20,7 +20,7 @@ use pathfinding::directed::astar::astar; use rand::Rng; use crate::{ - game::{DungeonLevel, DungeonTile, LEVEL_SIZE}, + level::{DungeonLevel, DungeonTile, LEVEL_SIZE}, util::NiceFloat, };