Make import style more consistent

This commit is contained in:
Timothy Warren 2021-11-17 16:08:46 -05:00
parent bf0166f97c
commit c4db6f5932
6 changed files with 5 additions and 11 deletions

View File

@ -187,5 +187,5 @@ pub struct SerializeMe;
// Special component that exists to help serialize the game data
#[derive(Component, Serialize, Deserialize, Clone)]
pub struct SerializationHelper {
pub map: super::map::Map,
pub map: crate::map::Map,
}

View File

@ -1,6 +1,5 @@
use crate::components::*;
use crate::particle_system::ParticleBuilder;
use crate::{game_log::GameLog, Map};
use crate::{game_log::GameLog, particle_system::ParticleBuilder, Map};
use rltk::RGB;
use specs::prelude::*;

View File

@ -1,7 +1,6 @@
use rltk::{GameState, Point, Rltk};
use specs::prelude::*;
use specs::saveload::{SimpleMarker, SimpleMarkerAllocator};
extern crate serde;
mod components;
mod damage_system;

View File

@ -1,4 +1,4 @@
use super::{BlocksTile, Map, Position};
use crate::{BlocksTile, Map, Position};
use specs::prelude::*;
pub struct MapIndexingSystem {}

View File

@ -1,8 +1,4 @@
use crate::components::{
AreaOfEffect, BlocksTile, CombatStats, Confusion, Consumable, DefenseBonus, EquipmentSlot,
Equippable, InflictsDamage, Item, MeleePowerBonus, Monster, Name, Player, Position,
ProvidesHealing, Ranged, Renderable, SerializeMe, Viewshed,
};
use crate::components::*;
use crate::{map::MAP_WIDTH, random_table::RandomTable, Rect};
use rltk::{RandomNumberGenerator, RGB};
use specs::prelude::*;

View File

@ -1,4 +1,4 @@
use super::{Map, Player, Position, Viewshed};
use crate::{Map, Player, Position, Viewshed};
use rltk::{field_of_view, Point};
use specs::prelude::*;