summaryrefslogtreecommitdiff
path: root/src/room.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/room.rs')
-rw-r--r--src/room.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/room.rs b/src/room.rs
index 6100ce1..db2171a 100644
--- a/src/room.rs
+++ b/src/room.rs
@@ -23,7 +23,7 @@ use crate::{
Players,
Emigration,
Time,
- RoomPermissions
+ RoomFlags
},
components::{
Position,
@@ -126,7 +126,7 @@ impl <'a, 'b>Room<'a, 'b> {
register_insert!(
world,
(Position, Visible, Controller, Movable, New, Removed, Moved, Player, Inventory, Health, Serialise, RoomExit, Entered, TriggerBox, Trap, Fighter, Healing, ControlCooldown, Autofight, MonsterAI, Home, AttackInbox, Item, Spawner, Clan, Faction, Interactable, Loot, Timer, Equipment, TimeOffset, Flags, Ear, Build, Whitelist, Dedup, Minable, LootHolder, OnSpawn, Substitute),
- (Ground, Input, Output, Size, Spawn, Players, Emigration, Time, RoomPermissions)
+ (Ground, Input, Output, Size, Spawn, Players, Emigration, Time, RoomFlags)
);
Room {
@@ -144,7 +144,7 @@ impl <'a, 'b>Room<'a, 'b> {
self.world.fetch_mut::<Size>().height = height;
self.world.fetch_mut::<SpawnPosition>().pos = template.spawn;
- self.world.insert::<RoomPermissions>(template.permissions.clone());
+ self.world.insert::<RoomFlags>(template.flags.clone());
for (idx, templates) in template.field.iter().enumerate() {
let x = (idx as i64) % width;