[−][src]Enum screeps_api::websocket::objects::KnownRoomObject
Enum describing all known room objects.
Variants
Source(Source)
Source object.
Mineral(Mineral)
Mineral object.
Spawn(StructureSpawn)
Spawn owned structure.
Extension(StructureExtension)
Extension owned structure.
Extractor(StructureExtractor)
Extractor owned structure.
Wall(StructureWall)
Wall unowned structure.
Road(StructureRoad)
Road unowned structure.
Rampart(StructureRampart)
Rampart owned structure.
KeeperLair(StructureKeeperLair)
Keeper Lair NPC structure.
Controller(StructureController)
Controller permanent structure.
Portal(StructurePortal)
Portal naturally occurring structure.
Link(StructureLink)
Link owned structure.
Storage(StructureStorage)
Storage owned structure.
Tower(StructureTower)
Tower owned structure.
Observer(StructureObserver)
Observer owned structure.
PowerBank(StructurePowerBank)
Power bank naturally occurring structure.
PowerSpawn(StructurePowerSpawn)
Power spawn owned structure.
Lab(StructureLab)
Lab owned structure.
Terminal(StructureTerminal)
Terminal owned structure.
Container(StructureContainer)
Container unowned structure.
Nuker(StructureNuker)
Nuker owned structure.
Tombstone(Tombstone)
Tombstone structure
Creep(Creep)
Creep
Resource(Resource)
Resource
ConstructionSite(ConstructionSite)
Construction site
Methods
impl KnownRoomObject
[src]
pub fn update(&mut self, input: Value) -> Result<(), Error>
[src]
Update this room object with a JSON update string.
pub fn x(&self) -> u32
[src]
Get this object's x position
pub fn y(&self) -> u32
[src]
Get this object's y position
pub fn id(&self) -> &str
[src]
Get this object's id
pub fn room(&self) -> RoomName
[src]
Get this object's room name
Trait Implementations
impl Clone for KnownRoomObject
[src]
fn clone(&self) -> KnownRoomObject
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for KnownRoomObject
[src]
impl<'de> Deserialize<'de> for KnownRoomObject
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Unpin for KnownRoomObject
impl Send for KnownRoomObject
impl Sync for KnownRoomObject
impl UnwindSafe for KnownRoomObject
impl RefUnwindSafe for KnownRoomObject
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,