Trait screeps::traits::RoomObjectProperties

source ·
pub trait RoomObjectProperties {
    // Required methods
    fn effects(&self) -> Vec<Effect>;
    fn effects_raw(&self) -> Option<Array>;
    fn room(&self) -> Option<Room>;
}

Required Methods§

source

fn effects(&self) -> Vec<Effect>

Effects applied to the object.

Screeps documentation

source

fn effects_raw(&self) -> Option<Array>

Effects applied to the object.

Screeps documentation

source

fn room(&self) -> Option<Room>

A link to the room that the object is currently in, or None if the object is a power creep not spawned on the current shard, or a flag or construction site not in a visible room.

Screeps documentation

Implementors§