Trait screeps::objects::RoomObjectProperties [−][src]
Trait for all wrappers over Screeps JavaScript objects extending
the RoomObject
class.
Contracts
The reference returned by AsRef<Reference>::as_ref
must reference a
JavaScript object extending the RoomObject
class.
Provided methods
fn room(&self) -> Option<Room>
[src]
The room that the object is in, or None
if an object is a flag or a
construction site and is placed in a room that is not visible to you.