Enum screeps::enums::DecayingObject
source · pub enum DecayingObject {
Deposit(Deposit),
Ruin(Ruin),
ScoreContainer(ScoreContainer),
StructureContainer(StructureContainer),
StructurePortal(StructurePortal),
StructurePowerBank(StructurePowerBank),
StructureRampart(StructureRampart),
StructureRoad(StructureRoad),
SymbolContainer(SymbolContainer),
Tombstone(Tombstone),
}
Variants§
Deposit(Deposit)
Ruin(Ruin)
ScoreContainer(ScoreContainer)
Available on crate feature
seasonal-season-1
only.StructureContainer(StructureContainer)
StructurePortal(StructurePortal)
StructurePowerBank(StructurePowerBank)
StructureRampart(StructureRampart)
StructureRoad(StructureRoad)
SymbolContainer(SymbolContainer)
Available on crate feature
seasonal-season-2
only.Tombstone(Tombstone)
Trait Implementations§
source§impl CanDecay for DecayingObject
impl CanDecay for DecayingObject
source§fn ticks_to_decay(&self) -> u32
fn ticks_to_decay(&self) -> u32
The number of ticks until the object will decay, losing hits.
source§impl From<Deposit> for DecayingObject
impl From<Deposit> for DecayingObject
source§fn from(v: Deposit) -> DecayingObject
fn from(v: Deposit) -> DecayingObject
Converts to this type from the input type.
source§impl From<Ruin> for DecayingObject
impl From<Ruin> for DecayingObject
source§fn from(v: Ruin) -> DecayingObject
fn from(v: Ruin) -> DecayingObject
Converts to this type from the input type.
source§impl From<ScoreContainer> for DecayingObject
Available on crate feature seasonal-season-1
only.
impl From<ScoreContainer> for DecayingObject
Available on crate feature
seasonal-season-1
only.source§fn from(v: ScoreContainer) -> DecayingObject
fn from(v: ScoreContainer) -> DecayingObject
Converts to this type from the input type.
source§impl From<StructureContainer> for DecayingObject
impl From<StructureContainer> for DecayingObject
source§fn from(v: StructureContainer) -> DecayingObject
fn from(v: StructureContainer) -> DecayingObject
Converts to this type from the input type.
source§impl From<StructurePortal> for DecayingObject
impl From<StructurePortal> for DecayingObject
source§fn from(v: StructurePortal) -> DecayingObject
fn from(v: StructurePortal) -> DecayingObject
Converts to this type from the input type.
source§impl From<StructurePowerBank> for DecayingObject
impl From<StructurePowerBank> for DecayingObject
source§fn from(v: StructurePowerBank) -> DecayingObject
fn from(v: StructurePowerBank) -> DecayingObject
Converts to this type from the input type.
source§impl From<StructureRampart> for DecayingObject
impl From<StructureRampart> for DecayingObject
source§fn from(v: StructureRampart) -> DecayingObject
fn from(v: StructureRampart) -> DecayingObject
Converts to this type from the input type.
source§impl From<StructureRoad> for DecayingObject
impl From<StructureRoad> for DecayingObject
source§fn from(v: StructureRoad) -> DecayingObject
fn from(v: StructureRoad) -> DecayingObject
Converts to this type from the input type.
source§impl From<SymbolContainer> for DecayingObject
Available on crate feature seasonal-season-2
only.
impl From<SymbolContainer> for DecayingObject
Available on crate feature
seasonal-season-2
only.source§fn from(v: SymbolContainer) -> DecayingObject
fn from(v: SymbolContainer) -> DecayingObject
Converts to this type from the input type.
source§impl From<Tombstone> for DecayingObject
impl From<Tombstone> for DecayingObject
source§fn from(v: Tombstone) -> DecayingObject
fn from(v: Tombstone) -> DecayingObject
Converts to this type from the input type.
source§impl TryInto<Deposit> for DecayingObject
impl TryInto<Deposit> for DecayingObject
source§impl TryInto<Ruin> for DecayingObject
impl TryInto<Ruin> for DecayingObject
source§impl TryInto<ScoreContainer> for DecayingObject
Available on crate feature seasonal-season-1
only.
impl TryInto<ScoreContainer> for DecayingObject
Available on crate feature
seasonal-season-1
only.source§impl TryInto<StructureContainer> for DecayingObject
impl TryInto<StructureContainer> for DecayingObject
source§impl TryInto<StructurePortal> for DecayingObject
impl TryInto<StructurePortal> for DecayingObject
source§impl TryInto<StructurePowerBank> for DecayingObject
impl TryInto<StructurePowerBank> for DecayingObject
source§impl TryInto<StructureRampart> for DecayingObject
impl TryInto<StructureRampart> for DecayingObject
source§impl TryInto<StructureRoad> for DecayingObject
impl TryInto<StructureRoad> for DecayingObject
source§impl TryInto<SymbolContainer> for DecayingObject
Available on crate feature seasonal-season-2
only.
impl TryInto<SymbolContainer> for DecayingObject
Available on crate feature
seasonal-season-2
only.Auto Trait Implementations§
impl RefUnwindSafe for DecayingObject
impl !Send for DecayingObject
impl !Sync for DecayingObject
impl Unpin for DecayingObject
impl UnwindSafe for DecayingObject
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more