Struct screeps::objects::StructureSpawn
[−]
[src]
pub struct StructureSpawn(_);
Methods
impl StructureSpawn
[src]
pub fn energy(&self) -> i32
[src]
pub fn energy_capacity(&self) -> i32
[src]
pub fn name(&self) -> String
[src]
impl StructureSpawn
[src]
pub fn spawn_creep(&self, body: &[Part], name: &str) -> ReturnCode
[src]
pub fn spawn<'a>(&'a self, body: &'a [Part], name: &'a str) -> SpawnOptions<'a>
[src]
pub fn is_spawning(&self) -> bool
[src]
Trait Implementations
impl Clone for StructureSpawn
[src]
fn clone(&self) -> StructureSpawn
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl AsRef<Reference> for StructureSpawn
[src]
impl From<StructureSpawn> for Reference
[src]
fn from(wrapper: StructureSpawn) -> Reference
[src]
Performs the conversion.
impl TryFrom<Value> for StructureSpawn
[src]
type Error = <Value as TryInto<Reference>>::Error
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<StructureSpawn, Self::Error>
[src]
Performs the conversion.
impl Transferable for StructureSpawn
[src]
impl Withdrawable for StructureSpawn
[src]
impl RoomObjectProperties for StructureSpawn
[src]
impl StructureProperties for StructureSpawn
[src]
fn hits(&self) -> i32
[src]
fn hits_max(&self) -> i32
[src]
fn id(&self) -> String
[src]
fn structure_type(&self) -> StructureType
[src]
fn destroy(&self) -> ReturnCode
[src]
fn is_active(&self) -> bool
[src]
fn notify_when_attacked(&self, notify_when_attacked: bool) -> ReturnCode
[src]
Usable on either owned structures or neutral structures in owned rooms, returns ReturnCode::NotOwner
otherwise. Read more