Struct screeps::objects::SpawnOptions
source · pub struct SpawnOptions { /* private fields */ }
Implementations§
source§impl SpawnOptions
impl SpawnOptions
pub fn new() -> Self
pub fn memory(self, mem: JsValue) -> Self
sourcepub fn energy_structures<T: IntoIterator<Item = V>, V: AsRef<Structure>>(
self,
structures: T
) -> Self
pub fn energy_structures<T: IntoIterator<Item = V>, V: AsRef<Structure>>( self, structures: T ) -> Self
Structures other than StructureSpawn
and StructureExtension
will
be ignored.
pub fn dry_run(self, dry_run: bool) -> Self
pub fn directions(self, directions: &[Direction]) -> Self
Trait Implementations§
source§impl Default for SpawnOptions
impl Default for SpawnOptions
source§fn default() -> SpawnOptions
fn default() -> SpawnOptions
Returns the “default value” for a type. Read more