pub struct PetActionBar {
pub(crate) resource_max: f64,
pub(crate) resource_initial: f64,
pub(crate) resource_regen_per_second: f64,
pub(crate) gcd_ms: u32,
pub(crate) abilities: &'static [PetAbility],
pub(crate) owner_coefficients: PetOwnerCoefficients,
}Expand description
Resource and global-cooldown rules for a persistent pet’s priority list.
Fields§
§resource_max: f64§resource_initial: f64§resource_regen_per_second: f64§gcd_ms: u32§abilities: &'static [PetAbility]§owner_coefficients: PetOwnerCoefficientsImplementations§
Source§impl PetActionBar
impl PetActionBar
pub const fn new( resource: PetResourceModel, gcd_ms: u32, abilities: &'static [PetAbility], ) -> Self
pub const fn owner_coefficients( self, coefficients: PetOwnerCoefficients, ) -> Self
pub const fn inherit_owner_stats(self) -> Self
Trait Implementations§
Source§impl Clone for PetActionBar
impl Clone for PetActionBar
Source§fn clone(&self) -> PetActionBar
fn clone(&self) -> PetActionBar
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 PetActionBar
impl Debug for PetActionBar
impl Copy for PetActionBar
Auto Trait Implementations§
impl Freeze for PetActionBar
impl RefUnwindSafe for PetActionBar
impl Send for PetActionBar
impl Sync for PetActionBar
impl Unpin for PetActionBar
impl UnsafeUnpin for PetActionBar
impl UnwindSafe for PetActionBar
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more