Trait eos_rs::api::dungeon_mode::EntityTableWrite
source · pub trait EntityTableWrite: EntityTableRead {
// Required methods
fn get_monsters_mut(&mut self) -> Vec<&mut DungeonEntity>;
fn get_active_monsters_mut(&mut self) -> Vec<&mut DungeonEntity>;
fn get_items_mut(&mut self) -> Vec<&mut DungeonEntity>;
fn get_traps_mut(&mut self) -> Vec<&mut DungeonEntity>;
fn get_hidden_stairs_mut(&mut self) -> Option<&mut DungeonEntity>;
}
Expand description
Functions for writing data into an entity table.
Required Methods§
sourcefn get_monsters_mut(&mut self) -> Vec<&mut DungeonEntity>
fn get_monsters_mut(&mut self) -> Vec<&mut DungeonEntity>
All monsters, whether they’re used or not.
Null entries are not included, and reading is stopped at them. Note that some may be invalid, check the validity flag!
sourcefn get_active_monsters_mut(&mut self) -> Vec<&mut DungeonEntity>
fn get_active_monsters_mut(&mut self) -> Vec<&mut DungeonEntity>
Actually used monsters.
Null entries are not included, and reading is stopped at them. Note that some may be invalid, check the validity flag!
sourcefn get_items_mut(&mut self) -> Vec<&mut DungeonEntity>
fn get_items_mut(&mut self) -> Vec<&mut DungeonEntity>
All items.
Null entries are not included, and reading is stopped at them. Note that some may be invalid, check the validity flag!
sourcefn get_traps_mut(&mut self) -> Vec<&mut DungeonEntity>
fn get_traps_mut(&mut self) -> Vec<&mut DungeonEntity>
All traps.
Null entries are not included, and reading is stopped at them. Note that some may be invalid, check the validity flag!
Hidden stairs entity.
Returns None if null. Note that it still may be invalid, check the validity flag!