pub struct PrimaryAttributes {
pub strength: u16,
pub dexterity: u16,
pub intelligence: u16,
pub stamina: u16,
pub vitality: u16,
pub wisdom: u16,
pub charisma: u16,
}Expand description
Core primary stats — internal scale 1–1000; UI displays value / 10 (1–100).
Fields§
§strength: u16§dexterity: u16§intelligence: u16§stamina: u16§vitality: u16§wisdom: u16§charisma: u16Implementations§
Source§impl PrimaryAttributes
impl PrimaryAttributes
Sourcepub fn derived_preview(&self) -> DerivedPreview
pub fn derived_preview(&self) -> DerivedPreview
Client-facing derived stat preview (mirrors sim tuning).
Trait Implementations§
Source§impl Clone for PrimaryAttributes
impl Clone for PrimaryAttributes
Source§fn clone(&self) -> PrimaryAttributes
fn clone(&self) -> PrimaryAttributes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PrimaryAttributes
Source§impl Debug for PrimaryAttributes
impl Debug for PrimaryAttributes
Source§impl Default for PrimaryAttributes
impl Default for PrimaryAttributes
Source§impl<'de> Deserialize<'de> for PrimaryAttributes
impl<'de> Deserialize<'de> for PrimaryAttributes
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
impl Eq for PrimaryAttributes
Source§impl PartialEq for PrimaryAttributes
impl PartialEq for PrimaryAttributes
Source§impl Serialize for PrimaryAttributes
impl Serialize for PrimaryAttributes
impl StructuralPartialEq for PrimaryAttributes
Auto Trait Implementations§
impl Freeze for PrimaryAttributes
impl RefUnwindSafe for PrimaryAttributes
impl Send for PrimaryAttributes
impl Sync for PrimaryAttributes
impl Unpin for PrimaryAttributes
impl UnsafeUnpin for PrimaryAttributes
impl UnwindSafe for PrimaryAttributes
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