pub struct Ruin(_);
Implementations
sourceimpl Ruin
impl Ruin
pub fn destroy_time(&self) -> u32
sourceimpl Ruin
impl Ruin
sourcepub fn structure_info(&self) -> (StructureType, RawObjectId, Option<String>)
pub fn structure_info(&self) -> (StructureType, RawObjectId, Option<String>)
Ruin.structure doesn’t return complete object data, so instead of implementing that directly, this function exposes relevant properties of the ruin’s structure directly in a tuple of the type, id, and owner
Trait Implementations
sourceimpl FromExpectedType<Reference> for Ruin
impl FromExpectedType<Reference> for Ruin
fn from_expected_type(reference: Reference) -> Result<Self, ConversionError>
sourceimpl HasId for Ruin
impl HasId for Ruin
sourcefn untyped_id(&self) -> RawObjectId
fn untyped_id(&self) -> RawObjectId
Retrieves this object’s id as an untyped, packed value. Read more
sourceimpl HasStore for Ruin
impl HasStore for Ruin
fn store_total(&self) -> u32
fn store_types(&self) -> Vec<ResourceType>
fn store_of(&self, ty: ResourceType) -> u32
fn energy(&self) -> u32
fn store_capacity(&self, resource: Option<ResourceType>) -> u32
fn store_free_capacity(&self, resource: Option<ResourceType>) -> i32
fn store_used_capacity(&self, resource: Option<ResourceType>) -> u32
sourceimpl InstanceOf for Ruin
impl InstanceOf for Ruin
sourcefn instance_of(reference: &Reference) -> bool
fn instance_of(reference: &Reference) -> bool
Checks whenever a given Reference if of type Self
.
sourceimpl PartialEq<Ruin> for Ruin
impl PartialEq<Ruin> for Ruin
sourceimpl ReferenceType for Ruin
impl ReferenceType for Ruin
sourceunsafe fn from_reference_unchecked(reference: Reference) -> Self
unsafe fn from_reference_unchecked(reference: Reference) -> Self
Converts a given reference into a concrete reference-like wrapper. Doesn’t do any type checking; highly unsafe to use! Read more
sourceimpl RoomObjectProperties for Ruin
impl RoomObjectProperties for Ruin
impl Eq for Ruin
impl JsSerialize for Ruin
impl Withdrawable for Ruin
Auto Trait Implementations
impl RefUnwindSafe for Ruin
impl Send for Ruin
impl Sync for Ruin
impl Unpin for Ruin
impl UnwindSafe for Ruin
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> FromExpectedType<Value> for Twhere
T: FromExpectedType<Reference>,
impl<T> FromExpectedType<Value> for Twhere
T: FromExpectedType<Reference>,
fn from_expected_type(v: Value) -> Result<T, ConversionError>
sourceimpl<T> HasPosition for Twhere
T: RoomObjectProperties,
impl<T> HasPosition for Twhere
T: RoomObjectProperties,
sourceimpl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
impl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
sourcefn into_expected_type(self) -> Result<U, ConversionError>
fn into_expected_type(self) -> Result<U, ConversionError>
Casts this value as the target type, making the assumption that the types are correct. Read more