pub(crate) struct RotationDecisionSubscription {
cooldown_rises: [u64; 4],
cooldown_falls: [u64; 4],
resource_rises: u32,
resource_falls: u32,
semantic_rises: u16,
semantic_falls: u16,
complete: bool,
has_eligible_actions: bool,
}Expand description
Fixed mutation set that can make an action executable in one decision mode.
Fields§
§cooldown_rises: [u64; 4]§cooldown_falls: [u64; 4]§resource_rises: u32§resource_falls: u32§semantic_rises: u16§semantic_falls: u16§complete: bool§has_eligible_actions: boolImplementations§
Source§impl RotationDecisionSubscription
impl RotationDecisionSubscription
const fn complete() -> Self
pub(crate) const fn is_complete(&self) -> bool
pub(crate) const fn has_eligible_actions(&self) -> bool
pub(crate) const fn cooldown_rises(&self) -> &[u64; 4]
pub(crate) const fn cooldown_falls(&self) -> &[u64; 4]
pub(crate) const fn resource_rises(&self) -> u32
pub(crate) const fn resource_falls(&self) -> u32
pub(crate) const fn semantic_rises(&self) -> u16
pub(crate) const fn semantic_falls(&self) -> u16
fn insert_cooldown( &mut self, spell: LocalSpellIdx, direction: PreparedRotationChangeDirection, )
fn insert_resource( &mut self, resource: ResourceType, direction: PreparedRotationChangeDirection, )
fn insert_semantic( &mut self, bit: u16, direction: PreparedRotationChangeDirection, )
Trait Implementations§
Source§impl Clone for RotationDecisionSubscription
impl Clone for RotationDecisionSubscription
Source§fn clone(&self) -> RotationDecisionSubscription
fn clone(&self) -> RotationDecisionSubscription
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 RotationDecisionSubscription
impl Debug for RotationDecisionSubscription
impl Copy for RotationDecisionSubscription
Auto Trait Implementations§
impl Freeze for RotationDecisionSubscription
impl RefUnwindSafe for RotationDecisionSubscription
impl Send for RotationDecisionSubscription
impl Sync for RotationDecisionSubscription
impl Unpin for RotationDecisionSubscription
impl UnsafeUnpin for RotationDecisionSubscription
impl UnwindSafe for RotationDecisionSubscription
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