pub trait TryGetByID<ID: JsCast, V: JsCast> where Self: AsRef<JsValue> + Deref<Target = Object>, { fn get(&self, id: &ID) -> Option<V> { ... } }
This trait is implemented for the global objects that give mappings of IDs to entities: spirits, bases, outposts, and stars. It allows faillibly fetching entities by their ID.
spirits
bases
outposts
stars
Returns the value for this key.