Trait eos_rs::api::dungeon_mode::EntityTableRead
source · pub trait EntityTableRead {
// Required methods
fn get_monsters(&self) -> Vec<&DungeonEntity>;
fn get_active_monsters(&self) -> Vec<&DungeonEntity>;
fn get_items(&self) -> Vec<&DungeonEntity>;
fn get_traps(&self) -> Vec<&DungeonEntity>;
fn get_hidden_stairs(&self) -> Option<&DungeonEntity>;
}
Expand description
Functions for reading data from an entity table.
Required Methods§
sourcefn get_monsters(&self) -> Vec<&DungeonEntity>
fn get_monsters(&self) -> Vec<&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(&self) -> Vec<&DungeonEntity>
fn get_active_monsters(&self) -> Vec<&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(&self) -> Vec<&DungeonEntity>
fn get_items(&self) -> Vec<&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(&self) -> Vec<&DungeonEntity>
fn get_traps(&self) -> Vec<&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!