Enum screeps::enums::TypedRoomObject
source · pub enum TypedRoomObject {
Show 36 variants
ConstructionSite(ConstructionSite),
Creep(Creep),
Deposit(Deposit),
Flag(Flag),
Mineral(Mineral),
Nuke(Nuke),
PowerCreep(PowerCreep),
Resource(Resource),
Ruin(Ruin),
ScoreCollector(ScoreCollector),
ScoreContainer(ScoreContainer),
Source(Source),
StructureContainer(StructureContainer),
StructureController(StructureController),
StructureExtension(StructureExtension),
StructureExtractor(StructureExtractor),
StructureFactory(StructureFactory),
StructureInvaderCore(StructureInvaderCore),
StructureKeeperLair(StructureKeeperLair),
StructureLab(StructureLab),
StructureLink(StructureLink),
StructureNuker(StructureNuker),
StructureObserver(StructureObserver),
StructurePortal(StructurePortal),
StructurePowerBank(StructurePowerBank),
StructurePowerSpawn(StructurePowerSpawn),
StructureRampart(StructureRampart),
StructureRoad(StructureRoad),
StructureSpawn(StructureSpawn),
StructureStorage(StructureStorage),
StructureTerminal(StructureTerminal),
StructureTower(StructureTower),
StructureWall(StructureWall),
SymbolContainer(SymbolContainer),
SymbolDecoder(SymbolDecoder),
Tombstone(Tombstone),
}
Expand description
Any enum representing any game object that inherits the RoomObject
type.
Variants§
ConstructionSite(ConstructionSite)
Creep(Creep)
Deposit(Deposit)
Flag(Flag)
Mineral(Mineral)
Nuke(Nuke)
PowerCreep(PowerCreep)
Resource(Resource)
Ruin(Ruin)
ScoreCollector(ScoreCollector)
Available on crate feature
seasonal-season-1
only.ScoreContainer(ScoreContainer)
Available on crate feature
seasonal-season-1
only.Source(Source)
StructureContainer(StructureContainer)
StructureController(StructureController)
StructureExtension(StructureExtension)
StructureExtractor(StructureExtractor)
StructureFactory(StructureFactory)
StructureInvaderCore(StructureInvaderCore)
StructureKeeperLair(StructureKeeperLair)
StructureLab(StructureLab)
StructureLink(StructureLink)
StructureNuker(StructureNuker)
StructureObserver(StructureObserver)
StructurePortal(StructurePortal)
StructurePowerBank(StructurePowerBank)
StructurePowerSpawn(StructurePowerSpawn)
StructureRampart(StructureRampart)
StructureRoad(StructureRoad)
StructureSpawn(StructureSpawn)
StructureStorage(StructureStorage)
StructureTerminal(StructureTerminal)
StructureTower(StructureTower)
StructureWall(StructureWall)
SymbolContainer(SymbolContainer)
Available on crate feature
seasonal-season-2
only.SymbolDecoder(SymbolDecoder)
Available on crate feature
seasonal-season-2
only.Tombstone(Tombstone)
Trait Implementations§
source§impl From<ConstructionSite> for TypedRoomObject
impl From<ConstructionSite> for TypedRoomObject
source§fn from(v: ConstructionSite) -> TypedRoomObject
fn from(v: ConstructionSite) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<Creep> for TypedRoomObject
impl From<Creep> for TypedRoomObject
source§fn from(v: Creep) -> TypedRoomObject
fn from(v: Creep) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<Deposit> for TypedRoomObject
impl From<Deposit> for TypedRoomObject
source§fn from(v: Deposit) -> TypedRoomObject
fn from(v: Deposit) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<Flag> for TypedRoomObject
impl From<Flag> for TypedRoomObject
source§fn from(v: Flag) -> TypedRoomObject
fn from(v: Flag) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<Mineral> for TypedRoomObject
impl From<Mineral> for TypedRoomObject
source§fn from(v: Mineral) -> TypedRoomObject
fn from(v: Mineral) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<Nuke> for TypedRoomObject
impl From<Nuke> for TypedRoomObject
source§fn from(v: Nuke) -> TypedRoomObject
fn from(v: Nuke) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<PowerCreep> for TypedRoomObject
impl From<PowerCreep> for TypedRoomObject
source§fn from(v: PowerCreep) -> TypedRoomObject
fn from(v: PowerCreep) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<Resource> for TypedRoomObject
impl From<Resource> for TypedRoomObject
source§fn from(v: Resource) -> TypedRoomObject
fn from(v: Resource) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<Ruin> for TypedRoomObject
impl From<Ruin> for TypedRoomObject
source§fn from(v: Ruin) -> TypedRoomObject
fn from(v: Ruin) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<ScoreCollector> for TypedRoomObject
Available on crate feature seasonal-season-1
only.
impl From<ScoreCollector> for TypedRoomObject
Available on crate feature
seasonal-season-1
only.source§fn from(v: ScoreCollector) -> TypedRoomObject
fn from(v: ScoreCollector) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<ScoreContainer> for TypedRoomObject
Available on crate feature seasonal-season-1
only.
impl From<ScoreContainer> for TypedRoomObject
Available on crate feature
seasonal-season-1
only.source§fn from(v: ScoreContainer) -> TypedRoomObject
fn from(v: ScoreContainer) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<Source> for TypedRoomObject
impl From<Source> for TypedRoomObject
source§fn from(v: Source) -> TypedRoomObject
fn from(v: Source) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<StructureContainer> for TypedRoomObject
impl From<StructureContainer> for TypedRoomObject
source§fn from(v: StructureContainer) -> TypedRoomObject
fn from(v: StructureContainer) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<StructureController> for TypedRoomObject
impl From<StructureController> for TypedRoomObject
source§fn from(v: StructureController) -> TypedRoomObject
fn from(v: StructureController) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<StructureExtension> for TypedRoomObject
impl From<StructureExtension> for TypedRoomObject
source§fn from(v: StructureExtension) -> TypedRoomObject
fn from(v: StructureExtension) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<StructureExtractor> for TypedRoomObject
impl From<StructureExtractor> for TypedRoomObject
source§fn from(v: StructureExtractor) -> TypedRoomObject
fn from(v: StructureExtractor) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<StructureFactory> for TypedRoomObject
impl From<StructureFactory> for TypedRoomObject
source§fn from(v: StructureFactory) -> TypedRoomObject
fn from(v: StructureFactory) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<StructureInvaderCore> for TypedRoomObject
impl From<StructureInvaderCore> for TypedRoomObject
source§fn from(v: StructureInvaderCore) -> TypedRoomObject
fn from(v: StructureInvaderCore) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<StructureKeeperLair> for TypedRoomObject
impl From<StructureKeeperLair> for TypedRoomObject
source§fn from(v: StructureKeeperLair) -> TypedRoomObject
fn from(v: StructureKeeperLair) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<StructureLab> for TypedRoomObject
impl From<StructureLab> for TypedRoomObject
source§fn from(v: StructureLab) -> TypedRoomObject
fn from(v: StructureLab) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<StructureLink> for TypedRoomObject
impl From<StructureLink> for TypedRoomObject
source§fn from(v: StructureLink) -> TypedRoomObject
fn from(v: StructureLink) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<StructureNuker> for TypedRoomObject
impl From<StructureNuker> for TypedRoomObject
source§fn from(v: StructureNuker) -> TypedRoomObject
fn from(v: StructureNuker) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<StructureObserver> for TypedRoomObject
impl From<StructureObserver> for TypedRoomObject
source§fn from(v: StructureObserver) -> TypedRoomObject
fn from(v: StructureObserver) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<StructurePortal> for TypedRoomObject
impl From<StructurePortal> for TypedRoomObject
source§fn from(v: StructurePortal) -> TypedRoomObject
fn from(v: StructurePortal) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<StructurePowerBank> for TypedRoomObject
impl From<StructurePowerBank> for TypedRoomObject
source§fn from(v: StructurePowerBank) -> TypedRoomObject
fn from(v: StructurePowerBank) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<StructurePowerSpawn> for TypedRoomObject
impl From<StructurePowerSpawn> for TypedRoomObject
source§fn from(v: StructurePowerSpawn) -> TypedRoomObject
fn from(v: StructurePowerSpawn) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<StructureRampart> for TypedRoomObject
impl From<StructureRampart> for TypedRoomObject
source§fn from(v: StructureRampart) -> TypedRoomObject
fn from(v: StructureRampart) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<StructureRoad> for TypedRoomObject
impl From<StructureRoad> for TypedRoomObject
source§fn from(v: StructureRoad) -> TypedRoomObject
fn from(v: StructureRoad) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<StructureSpawn> for TypedRoomObject
impl From<StructureSpawn> for TypedRoomObject
source§fn from(v: StructureSpawn) -> TypedRoomObject
fn from(v: StructureSpawn) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<StructureStorage> for TypedRoomObject
impl From<StructureStorage> for TypedRoomObject
source§fn from(v: StructureStorage) -> TypedRoomObject
fn from(v: StructureStorage) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<StructureTerminal> for TypedRoomObject
impl From<StructureTerminal> for TypedRoomObject
source§fn from(v: StructureTerminal) -> TypedRoomObject
fn from(v: StructureTerminal) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<StructureTower> for TypedRoomObject
impl From<StructureTower> for TypedRoomObject
source§fn from(v: StructureTower) -> TypedRoomObject
fn from(v: StructureTower) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<StructureWall> for TypedRoomObject
impl From<StructureWall> for TypedRoomObject
source§fn from(v: StructureWall) -> TypedRoomObject
fn from(v: StructureWall) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<SymbolContainer> for TypedRoomObject
Available on crate feature seasonal-season-2
only.
impl From<SymbolContainer> for TypedRoomObject
Available on crate feature
seasonal-season-2
only.source§fn from(v: SymbolContainer) -> TypedRoomObject
fn from(v: SymbolContainer) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<SymbolDecoder> for TypedRoomObject
Available on crate feature seasonal-season-2
only.
impl From<SymbolDecoder> for TypedRoomObject
Available on crate feature
seasonal-season-2
only.source§fn from(v: SymbolDecoder) -> TypedRoomObject
fn from(v: SymbolDecoder) -> TypedRoomObject
Converts to this type from the input type.
source§impl From<Tombstone> for TypedRoomObject
impl From<Tombstone> for TypedRoomObject
source§fn from(v: Tombstone) -> TypedRoomObject
fn from(v: Tombstone) -> TypedRoomObject
Converts to this type from the input type.
source§impl RoomObjectProperties for TypedRoomObject
impl RoomObjectProperties for TypedRoomObject
source§fn effects_raw(&self) -> Option<Array>
fn effects_raw(&self) -> Option<Array>
Effects applied to the object.
source§impl TryInto<ConstructionSite> for TypedRoomObject
impl TryInto<ConstructionSite> for TypedRoomObject
source§impl TryInto<Creep> for TypedRoomObject
impl TryInto<Creep> for TypedRoomObject
source§impl TryInto<Deposit> for TypedRoomObject
impl TryInto<Deposit> for TypedRoomObject
source§impl TryInto<Flag> for TypedRoomObject
impl TryInto<Flag> for TypedRoomObject
source§impl TryInto<Mineral> for TypedRoomObject
impl TryInto<Mineral> for TypedRoomObject
source§impl TryInto<Nuke> for TypedRoomObject
impl TryInto<Nuke> for TypedRoomObject
source§impl TryInto<PowerCreep> for TypedRoomObject
impl TryInto<PowerCreep> for TypedRoomObject
source§impl TryInto<Resource> for TypedRoomObject
impl TryInto<Resource> for TypedRoomObject
source§impl TryInto<Ruin> for TypedRoomObject
impl TryInto<Ruin> for TypedRoomObject
source§impl TryInto<ScoreCollector> for TypedRoomObject
Available on crate feature seasonal-season-1
only.
impl TryInto<ScoreCollector> for TypedRoomObject
Available on crate feature
seasonal-season-1
only.source§impl TryInto<ScoreContainer> for TypedRoomObject
Available on crate feature seasonal-season-1
only.
impl TryInto<ScoreContainer> for TypedRoomObject
Available on crate feature
seasonal-season-1
only.source§impl TryInto<Source> for TypedRoomObject
impl TryInto<Source> for TypedRoomObject
source§impl TryInto<StructureContainer> for TypedRoomObject
impl TryInto<StructureContainer> for TypedRoomObject
source§impl TryInto<StructureController> for TypedRoomObject
impl TryInto<StructureController> for TypedRoomObject
source§impl TryInto<StructureExtension> for TypedRoomObject
impl TryInto<StructureExtension> for TypedRoomObject
source§impl TryInto<StructureExtractor> for TypedRoomObject
impl TryInto<StructureExtractor> for TypedRoomObject
source§impl TryInto<StructureFactory> for TypedRoomObject
impl TryInto<StructureFactory> for TypedRoomObject
source§impl TryInto<StructureKeeperLair> for TypedRoomObject
impl TryInto<StructureKeeperLair> for TypedRoomObject
source§impl TryInto<StructureLab> for TypedRoomObject
impl TryInto<StructureLab> for TypedRoomObject
source§impl TryInto<StructureLink> for TypedRoomObject
impl TryInto<StructureLink> for TypedRoomObject
source§impl TryInto<StructureNuker> for TypedRoomObject
impl TryInto<StructureNuker> for TypedRoomObject
source§impl TryInto<StructureObserver> for TypedRoomObject
impl TryInto<StructureObserver> for TypedRoomObject
source§impl TryInto<StructurePortal> for TypedRoomObject
impl TryInto<StructurePortal> for TypedRoomObject
source§impl TryInto<StructurePowerBank> for TypedRoomObject
impl TryInto<StructurePowerBank> for TypedRoomObject
source§impl TryInto<StructurePowerSpawn> for TypedRoomObject
impl TryInto<StructurePowerSpawn> for TypedRoomObject
source§impl TryInto<StructureRampart> for TypedRoomObject
impl TryInto<StructureRampart> for TypedRoomObject
source§impl TryInto<StructureRoad> for TypedRoomObject
impl TryInto<StructureRoad> for TypedRoomObject
source§impl TryInto<StructureSpawn> for TypedRoomObject
impl TryInto<StructureSpawn> for TypedRoomObject
source§impl TryInto<StructureStorage> for TypedRoomObject
impl TryInto<StructureStorage> for TypedRoomObject
source§impl TryInto<StructureTerminal> for TypedRoomObject
impl TryInto<StructureTerminal> for TypedRoomObject
source§impl TryInto<StructureTower> for TypedRoomObject
impl TryInto<StructureTower> for TypedRoomObject
source§impl TryInto<StructureWall> for TypedRoomObject
impl TryInto<StructureWall> for TypedRoomObject
source§impl TryInto<SymbolContainer> for TypedRoomObject
Available on crate feature seasonal-season-2
only.
impl TryInto<SymbolContainer> for TypedRoomObject
Available on crate feature
seasonal-season-2
only.source§impl TryInto<SymbolDecoder> for TypedRoomObject
Available on crate feature seasonal-season-2
only.
impl TryInto<SymbolDecoder> for TypedRoomObject
Available on crate feature
seasonal-season-2
only.Auto Trait Implementations§
impl Freeze for TypedRoomObject
impl RefUnwindSafe for TypedRoomObject
impl !Send for TypedRoomObject
impl !Sync for TypedRoomObject
impl Unpin for TypedRoomObject
impl UnwindSafe for TypedRoomObject
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