pub struct PlayerVitals {
pub health: f32,
pub health_max: f32,
pub mana: f32,
pub mana_max: f32,
pub stamina: f32,
pub stamina_max: f32,
pub coins: u32,
pub deaths: u32,
pub life_state: LifeState,
}Expand description
Player health / resources (players only; omitted on other entities).
Fields§
§health: f32§health_max: f32§mana: f32§mana_max: f32§stamina: f32§stamina_max: f32§coins: u32§deaths: u32§life_state: LifeStateTrait Implementations§
Source§impl Clone for PlayerVitals
impl Clone for PlayerVitals
Source§fn clone(&self) -> PlayerVitals
fn clone(&self) -> PlayerVitals
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 PlayerVitals
Source§impl Debug for PlayerVitals
impl Debug for PlayerVitals
Source§impl Default for PlayerVitals
impl Default for PlayerVitals
Source§impl<'de> Deserialize<'de> for PlayerVitals
impl<'de> Deserialize<'de> for PlayerVitals
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
Source§impl PartialEq for PlayerVitals
impl PartialEq for PlayerVitals
Source§fn eq(&self, other: &PlayerVitals) -> bool
fn eq(&self, other: &PlayerVitals) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PlayerVitals
impl Serialize for PlayerVitals
impl StructuralPartialEq for PlayerVitals
Auto Trait Implementations§
impl Freeze for PlayerVitals
impl RefUnwindSafe for PlayerVitals
impl Send for PlayerVitals
impl Sync for PlayerVitals
impl Unpin for PlayerVitals
impl UnsafeUnpin for PlayerVitals
impl UnwindSafe for PlayerVitals
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