Trait screeps::traits::HasTypedId
source · pub trait HasTypedId<T> {
// Required methods
fn id(&self) -> ObjectId<T>;
fn js_id(&self) -> JsObjectId<T>;
}
Required Methods§
sourcefn id(&self) -> ObjectId<T>
fn id(&self) -> ObjectId<T>
Object ID of the object, which can be used to efficiently fetch a fresh reference to the object on subsequent ticks.