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 moreAuto Trait Implementations§
impl RefUnwindSafe for FactoryRecipe
impl Send for FactoryRecipe
impl Sync for FactoryRecipe
impl Unpin for FactoryRecipe
impl UnwindSafe for FactoryRecipe
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