pub struct CraftingRecipe {Show 17 fields
pub id: u32,
pub name: String,
pub ingredients: Vec<CraftingIngredient>,
pub inputs: Vec<(u32, u32)>,
pub output_item_id: u32,
pub output_quantity: u32,
pub required_station: CraftingStation,
pub required_skill_level: u32,
pub skill_required: u32,
pub success_chance: f32,
pub experience_reward: u32,
pub crafting_time_secs: f32,
pub can_fail: bool,
pub fail_chance: f32,
pub byproduct_item_id: Option<u32>,
pub byproduct_chance: f32,
pub category: String,
}Fields§
§id: u32§name: String§ingredients: Vec<CraftingIngredient>§inputs: Vec<(u32, u32)>§output_item_id: u32§output_quantity: u32§required_station: CraftingStation§required_skill_level: u32§skill_required: u32§success_chance: f32§experience_reward: u32§crafting_time_secs: f32§can_fail: bool§fail_chance: f32§byproduct_item_id: Option<u32>§byproduct_chance: f32§category: StringTrait Implementations§
Source§impl Clone for CraftingRecipe
impl Clone for CraftingRecipe
Source§impl Debug for CraftingRecipe
impl Debug for CraftingRecipe
Auto Trait Implementations§
impl Freeze for CraftingRecipe
impl RefUnwindSafe for CraftingRecipe
impl Send for CraftingRecipe
impl Sync for CraftingRecipe
impl Unpin for CraftingRecipe
impl UnsafeUnpin for CraftingRecipe
impl UnwindSafe for CraftingRecipe
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.