pub struct UnderworldUnit {
pub level: u16,
pub count: u16,
pub total_attributes: u32,
pub upgraded_amount: u16,
pub upgrade_cost: UnderworldCost,
pub upgrade_next_lvl: u16,
}Expand description
Information about a single type of unit
Fields§
§level: u16The current (battle) level this unit has
count: u16The amount of units the character has of this type
total_attributes: u32The total amount of attributes this unit has
upgraded_amount: u16The amount of times this unit has been upgraded already
upgrade_cost: UnderworldCostThe price to pay for this unit to be upgraded once
upgrade_next_lvl: u16The level this unit will have, when the upgrade has been bought
Trait Implementations§
Source§impl Clone for UnderworldUnit
impl Clone for UnderworldUnit
Source§fn clone(&self) -> UnderworldUnit
fn clone(&self) -> UnderworldUnit
Returns a duplicate 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 moreSource§impl Debug for UnderworldUnit
impl Debug for UnderworldUnit
Source§impl Default for UnderworldUnit
impl Default for UnderworldUnit
Source§fn default() -> UnderworldUnit
fn default() -> UnderworldUnit
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UnderworldUnit
impl<'de> Deserialize<'de> for UnderworldUnit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UnderworldUnit
impl RefUnwindSafe for UnderworldUnit
impl Send for UnderworldUnit
impl Sync for UnderworldUnit
impl Unpin for UnderworldUnit
impl UnwindSafe for UnderworldUnit
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