pub struct ExhaustParams {
pub move_rate: ExhaustRate,
pub swim_rate: ExhaustRate,
pub jump_rate: ExhaustRate,
pub attack_rate: ExhaustRate,
}Expand description
Exhaustion rates for all player actions.
Fields§
§move_rate: ExhaustRateRate while walking / running.
swim_rate: ExhaustRateRate while swimming.
jump_rate: ExhaustRateRate per jump.
attack_rate: ExhaustRateRate per attack.
Trait Implementations§
Source§impl Clone for ExhaustParams
impl Clone for ExhaustParams
Source§fn clone(&self) -> ExhaustParams
fn clone(&self) -> ExhaustParams
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 ExhaustParams
Source§impl Debug for ExhaustParams
impl Debug for ExhaustParams
Source§impl Default for ExhaustParams
impl Default for ExhaustParams
Source§fn default() -> ExhaustParams
fn default() -> ExhaustParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExhaustParams
impl<'de> Deserialize<'de> for ExhaustParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExhaustParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExhaustParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExhaustParams
impl PartialEq for ExhaustParams
Source§impl Serialize for ExhaustParams
impl Serialize for ExhaustParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ExhaustParams
Auto Trait Implementations§
impl Forget for ExhaustParams
impl Freeze for ExhaustParams
impl Move for ExhaustParams
impl RefUnwindSafe for ExhaustParams
impl Send for ExhaustParams
impl Sync for ExhaustParams
impl Unpin for ExhaustParams
impl UnsafeUnpin for ExhaustParams
impl UnwindSafe for ExhaustParams
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