pub struct Companion {
pub level: i64,
pub equipment: Equipment,
pub attributes: EnumMap<AttributeType, u32>,
}
Expand description
All the information about a single companion. The class is not included here, as you access this via a map, where the key will be the class
Fields§
§level: i64
I can not recall, if I made this signed on purpose, because this should always be > 0
equipment: Equipment
The equipment this companion is wearing
attributes: EnumMap<AttributeType, u32>
The total attributes of this companion
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Companion
impl<'de> Deserialize<'de> for Companion
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 Companion
impl RefUnwindSafe for Companion
impl Send for Companion
impl Sync for Companion
impl Unpin for Companion
impl UnwindSafe for Companion
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