pub(crate) struct SurvivalHandler {
inner: CombatHandler,
}Fields§
§inner: CombatHandlerImplementations§
Source§impl SurvivalHandler
impl SurvivalHandler
pub(crate) fn try_new( parts: ContentHandlerParts<'_>, params: &HandlerParams<'_>, ) -> Result<Self, EngineError>
Trait Implementations§
Source§impl Debug for SurvivalHandler
impl Debug for SurvivalHandler
Source§impl SpecHandler for SurvivalHandler
impl SpecHandler for SurvivalHandler
fn on_sim_start(&mut self, ctx: &mut SimContext<'_>)
Source§fn install_target_metadata(&self, _sink: &mut TelemetrySink)
fn install_target_metadata(&self, _sink: &mut TelemetrySink)
Install immutable encounter target metadata into a newly constructed telemetry sink.
fn on_player_ready(&mut self, ctx: &mut SimContext<'_>) -> Option<SpecAction>
fn on_cast_complete(&mut self, event: Event, ctx: &mut SimContext<'_>)
fn on_triggered_spell( &mut self, _spell: ScheduledSpellBinding, _source: ActorId, _target: ActorId, _ctx: &mut SimContext<'_>, )
fn on_spell_impact( &mut self, _impact: PendingImpactBinding, _ctx: &mut SimContext<'_>, )
fn on_spell_launch( &mut self, _impact: PendingImpactBinding, _ctx: &mut SimContext<'_>, )
fn on_guardian_action( &mut self, _guardian: GuardianEventBinding, _ctx: &mut SimContext<'_>, )
fn on_guardian_expire( &mut self, _guardian: GuardianEventBinding, _ctx: &mut SimContext<'_>, )
fn on_pet_action( &mut self, _action: PetActionBinding, _ctx: &mut SimContext<'_>, )
fn on_aura_tick(&mut self, _event: AuraEventRef, _ctx: &mut SimContext<'_>)
fn on_channel_tick( &mut self, _spell: ScheduledSpellBinding, _source: ActorId, _target: EnemyIdx, _generation: u64, _ctx: &mut SimContext<'_>, )
fn on_aura_expire(&mut self, _event: AuraEventRef, _ctx: &mut SimContext<'_>)
fn on_proc_heartbeat(&mut self, _ctx: &mut SimContext<'_>)
fn on_death( &mut self, _target: EnemyIdx, _scope: DeathEventScope, _ctx: &mut SimContext<'_>, )
fn on_encounter_despawn( &mut self, _scope: PullScope, _target: EnemyIdx, _kind: EncounterDespawnKind, _ctx: &mut SimContext<'_>, )
fn on_group_complete( &mut self, _scope: PullScope, _group: GroupId, _ctx: &mut SimContext<'_>, )
fn on_pull_complete( &mut self, _scope: PullScope, _finalize: bool, _ctx: &mut SimContext<'_>, )
fn on_encounter_terminate( &mut self, _reason: EncounterTerminationReason, _ctx: &mut SimContext<'_>, )
fn on_wave_activate( &mut self, _scope: PullScope, _wave: WaveId, _ctx: &mut SimContext<'_>, )
fn on_enemy_activate( &mut self, _scope: PullScope, _target: EnemyIdx, _ctx: &mut SimContext<'_>, )
fn on_retarget(&mut self, _scope: PullScope, _ctx: &mut SimContext<'_>)
fn on_encounter_move( &mut self, _scope: PullScope, _actor: PositionedActorRef, _transform: SpatialTransform, _ctx: &mut SimContext<'_>, )
fn on_actor_movement( &mut self, _movement: ActorMovementBinding, _moving: bool, _ctx: &mut SimContext<'_>, )
fn on_raid_event(&mut self, _event: RaidEventBinding, _ctx: &mut SimContext<'_>)
fn on_raid_add_despawn( &mut self, _add: RaidAddBinding, _ctx: &mut SimContext<'_>, )
fn on_external_buff( &mut self, _buff: ExternalBuffBinding, _ctx: &mut SimContext<'_>, )
Source§fn on_event_queue_empty(&mut self, _ctx: &mut SimContext<'_>)
fn on_event_queue_empty(&mut self, _ctx: &mut SimContext<'_>)
Called only when the shared event queue is empty.
Source§fn encounter_termination_time(&self) -> Option<SimTime>
fn encounter_termination_time(&self) -> Option<SimTime>
Exact termination timestamp once the encounter policy is satisfied.
Source§fn on_despawn(
&mut self,
_target: EnemyIdx,
_ctx: &mut SimContext<'_>,
) -> EnemyDespawnOutcome
fn on_despawn( &mut self, _target: EnemyIdx, _ctx: &mut SimContext<'_>, ) -> EnemyDespawnOutcome
Despawn an enemy through the canonical combat cleanup boundary.
Source§fn on_hook_timer(
&mut self,
_timer: HookTimerBinding,
_source: ActorId,
_target: Option<EnemyIdx>,
_ctx: &mut SimContext<'_>,
)
fn on_hook_timer( &mut self, _timer: HookTimerBinding, _source: ActorId, _target: Option<EnemyIdx>, _ctx: &mut SimContext<'_>, )
A
HookTimer scheduled via the combat layer’s schedule_hook came due.fn on_auto_attack( &mut self, _source: ActorId, _target: EnemyIdx, _ctx: &mut SimContext<'_>, )
fn on_enemy_auto_attack( &mut self, _source: EnemyIdx, _target: ActorId, _ctx: &mut SimContext<'_>, )
fn on_cooldown_ready( &mut self, _spell: ScheduledSpellBinding, _ctx: &mut SimContext<'_>, )
fn flush_scheduled(&mut self, _push: &mut dyn FnMut(Event))
Source§fn take_runtime_error(&mut self) -> Option<SpecRuntimeError>
fn take_runtime_error(&mut self) -> Option<SpecRuntimeError>
Take a fatal event-processing failure, if the handler recorded one.
fn total_damage(&self) -> f64
Source§fn cast_time_ms(&self, spell: ScheduledSpellBinding, empower_rank: u8) -> u32
fn cast_time_ms(&self, spell: ScheduledSpellBinding, empower_rank: u8) -> u32
Cast time in milliseconds; 0 for instants.
fn paperdoll(&self) -> Option<Paperdoll>
fn introspect(&self) -> SpecIntrospection
fn attach_decision_trace(&mut self, _sink: Arc<dyn DecisionTraceSink>)
Auto Trait Implementations§
impl !Freeze for SurvivalHandler
impl !RefUnwindSafe for SurvivalHandler
impl Send for SurvivalHandler
impl !Sync for SurvivalHandler
impl Unpin for SurvivalHandler
impl UnsafeUnpin for SurvivalHandler
impl !UnwindSafe for SurvivalHandler
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
§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