Struct screeps::constants::FactoryRecipe
source · pub struct FactoryRecipe {
pub amount: u32,
pub cooldown: u32,
pub components: HashMap<ResourceType, u32>,
pub level: Option<u32>,
}
Expand description
Returned values from ResourceType::commodity_recipe
representing a
commodity that can be produced in factories.
Fields§
§amount: u32
Amount of the component that this recipe creates
cooldown: u32
Cooldown of the factory after creating this recipe
components: HashMap<ResourceType, u32>
Components - resource type and amount
level: Option<u32>
Required factory level to be able to create this commodity, if restricted
Trait Implementations§
source§impl Clone for FactoryRecipe
impl Clone for FactoryRecipe
source§fn clone(&self) -> FactoryRecipe
fn clone(&self) -> FactoryRecipe
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more