Function screeps::game::get_object_by_js_id_typed
source · pub fn get_object_by_js_id_typed<T>(id: &JsObjectId<T>) -> Option<T>where
T: MaybeHasId + JsCast,
Expand description
Get the typed object represented by a given JsObjectId
, if it’s
still alive and visible.