pub fn get_object_by_id_erased(id: &RawObjectId) -> Option<RoomObject>
Expand description

Get the RoomObject represented by a given RawObjectId, if it’s still alive and visible.

Screeps documentation