pub unsafe trait RoomObjectProperties: AsRef<Reference> + Into<Reference> + HasPosition + ReferenceType + TryFrom<Value, Error = ConversionError> + TryFrom<Reference, Error = ConversionError> {
    fn room(&self) -> Room { ... }
}
Expand description

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

Implementors