[−][src]Function screeps::game::get_object_erased
pub fn get_object_erased(id: &str) -> Option<RoomObject>
See [http://docs.screeps.com/api/#Game.getObjectById]
This gets the object in 'erased' form - all that is known about it is that it's a RoomObject.
If a more specific type is expected, get_object_typed
can be used.
[http://docs.screeps.com/api/#Game.getObjectById]: http://docs.screeps.com/api/#Game.getObjectById