pub struct ItemBase {
pub name: &'static str,
pub item_type: ItemType,
pub base_damage: f32,
pub base_defense: f32,
pub base_value: u32,
pub weight: f32,
pub rarity: Rarity,
pub glyph: char,
pub required_level: u32,
}Expand description
Base definition of an item (before affixes).
Fields§
§name: &'static str§item_type: ItemType§base_damage: f32§base_defense: f32§base_value: u32§weight: f32§rarity: Rarity§glyph: char§required_level: u32Minimum item level required to find this base.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ItemBase
impl RefUnwindSafe for ItemBase
impl Send for ItemBase
impl Sync for ItemBase
impl Unpin for ItemBase
impl UnsafeUnpin for ItemBase
impl UnwindSafe for ItemBase
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