pub struct HookProgramView<'a> {
pub(super) program: &'a CombatProgram,
}Expand description
Focused immutable program metadata exposed to runtime content hooks.
Fields§
§program: &'a CombatProgramImplementations§
Source§impl<'a> HookProgramView<'a>
impl<'a> HookProgramView<'a>
pub(crate) const fn new(program: &'a CombatProgram) -> Self
pub fn spec_config<T>(self) -> Option<&'a T>where
T: SpecConfig,
pub fn base_stats(self) -> &'a BaseStats
pub fn encounter(self) -> &'a ResolvedEncounter
Sourcepub fn spell(self, local: LocalSpellIdx) -> &'a SpellData
pub fn spell(self, local: LocalSpellIdx) -> &'a SpellData
Read one finalized spell definition through its typed local coordinate.
Sourcepub fn aura(self, local: LocalAuraIdx) -> &'a AuraData
pub fn aura(self, local: LocalAuraIdx) -> &'a AuraData
Read one finalized aura definition through its typed local coordinate.
Sourcepub fn bound_aura(self, binding: AuraBinding) -> Option<LocalAuraIdx>
pub fn bound_aura(self, binding: AuraBinding) -> Option<LocalAuraIdx>
Resolve a sealed semantic aura binding through the program’s frozen dense table.
Sourcepub fn bound_spell(self, binding: SpellBinding) -> Option<LocalSpellIdx>
pub fn bound_spell(self, binding: SpellBinding) -> Option<LocalSpellIdx>
Resolve a sealed semantic spell binding through the program’s frozen dense table.
Sourcepub fn bound_rppm(self, binding: RppmBinding) -> Option<LocalRppmIdx>
pub fn bound_rppm(self, binding: RppmBinding) -> Option<LocalRppmIdx>
Resolve a sealed semantic RPPM binding through the program’s frozen dense table.
Sourcepub fn precombat_auras(self) -> &'a [LocalAuraIdx]
pub fn precombat_auras(self) -> &'a [LocalAuraIdx]
Test-only finalized precombat aura coordinates.
Trait Implementations§
Source§impl<'a> Clone for HookProgramView<'a>
impl<'a> Clone for HookProgramView<'a>
Source§fn clone(&self) -> HookProgramView<'a>
fn clone(&self) -> HookProgramView<'a>
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<'a> Debug for HookProgramView<'a>
impl<'a> Debug for HookProgramView<'a>
impl<'a> Copy for HookProgramView<'a>
Auto Trait Implementations§
impl<'a> Freeze for HookProgramView<'a>
impl<'a> !RefUnwindSafe for HookProgramView<'a>
impl<'a> !Send for HookProgramView<'a>
impl<'a> !Sync for HookProgramView<'a>
impl<'a> Unpin for HookProgramView<'a>
impl<'a> UnsafeUnpin for HookProgramView<'a>
impl<'a> !UnwindSafe for HookProgramView<'a>
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