Skip to main content

Event

Enum Event 

Source
pub enum Event {
Show 31 variants PlayerReady { t: SimTime, }, OffGcdReady { t: SimTime, }, CastStart { t: SimTime, spell_id: SpellIdx, empower_rank: u8, source: ActorId, target: EnemyIdx, }, CastComplete { t: SimTime, spell_id: SpellIdx, empower_rank: u8, source: ActorId, target: EnemyIdx, }, TriggeredSpell { t: SimTime, spell_id: SpellIdx, source: ActorId, target: ActorId, }, SpellLaunch { t: SimTime, impact_id: u32, source: ActorId, target: EnemyIdx, }, SpellImpact { t: SimTime, impact_id: u32, source: ActorId, target: EnemyIdx, }, GuardianAction { t: SimTime, guardian_id: u32, guardian_generation: u32, ability_index: usize, source: ActorId, target: EnemyIdx, }, GuardianExpire { t: SimTime, guardian_id: u32, guardian_generation: u32, }, PetAction { t: SimTime, auto_attack_index: usize, source: ActorId, target: EnemyIdx, }, AuraTick { t: SimTime, key: AuraKey, target: Option<EnemyIdx>, }, ChannelTick { t: SimTime, spell_id: SpellIdx, source: ActorId, target: EnemyIdx, generation: u64, }, AuraExpire { t: SimTime, key: AuraKey, target: Option<EnemyIdx>, }, ProcHeartbeat { t: SimTime, }, Death { t: SimTime, target: EnemyIdx, scope: DeathEventScope, }, EncounterDespawn { t: SimTime, scope: PullScope, target: EnemyIdx, kind: EncounterDespawnKind, }, GroupComplete { t: SimTime, scope: PullScope, group: GroupId, }, PullComplete { t: SimTime, scope: PullScope, finalize: bool, }, EncounterTerminate { t: SimTime, reason: EncounterTerminationReason, }, WaveActivate { t: SimTime, scope: PullScope, wave: WaveId, }, EnemyActivate { t: SimTime, scope: PullScope, target: EnemyIdx, }, Retarget { t: SimTime, scope: PullScope, }, EncounterMove { t: SimTime, scope: PullScope, actor: PositionedActorRef, transform: SpatialTransform, }, ActorMovement { t: SimTime, actor: ActorId, moving: bool, generation: u64, }, RaidEvent { t: SimTime, index: usize, }, RaidAddDespawn { t: SimTime, target: EnemyIdx, activation_generation: u64, encounter_generation: PullLifecycleGeneration, }, ExternalBuff { t: SimTime, index: usize, }, HookTimer { t: SimTime, timer_id: u32, source: ActorId, target: Option<EnemyIdx>, }, CooldownReady { t: SimTime, cooldown_key: SpellIdx, }, AutoAttack { t: SimTime, source: ActorId, target: EnemyIdx, }, EnemyAutoAttack { t: SimTime, source: EnemyIdx, target: ActorId, },
}
Expand description

Unified simulation event type.

Variants§

§

PlayerReady

Fields

§

OffGcdReady

Fields

§

CastStart

Fields

§spell_id: SpellIdx
§empower_rank: u8
§source: ActorId
§target: EnemyIdx
§

CastComplete

Fields

§spell_id: SpellIdx
§empower_rank: u8
§source: ActorId
§target: EnemyIdx
§

TriggeredSpell

Server-triggered cast retaining the exact affected actor identity.

Fields

§spell_id: SpellIdx
§source: ActorId
§target: ActorId
§

SpellLaunch

Fields

§impact_id: u32
§source: ActorId
§target: EnemyIdx
§

SpellImpact

Fields

§impact_id: u32
§source: ActorId
§target: EnemyIdx
§

GuardianAction

Fields

§guardian_id: u32
§guardian_generation: u32
§ability_index: usize
§source: ActorId
§target: EnemyIdx
§

GuardianExpire

Fields

§guardian_id: u32
§guardian_generation: u32
§

PetAction

Fields

§auto_attack_index: usize
§source: ActorId
§target: EnemyIdx
§

AuraTick

Fields

§

ChannelTick

Fields

§spell_id: SpellIdx
§source: ActorId
§target: EnemyIdx
§generation: u64
§

AuraExpire

Fields

§

ProcHeartbeat

Fields

§

Death

Fields

§target: EnemyIdx
§

EncounterDespawn

§

GroupComplete

Fields

§group: GroupId
§

PullComplete

Fields

§finalize: bool
§

EncounterTerminate

§

WaveActivate

Fields

§wave: WaveId
§

EnemyActivate

Fields

§target: EnemyIdx
§

Retarget

Fields

§

EncounterMove

§

ActorMovement

Fields

§actor: ActorId
§moving: bool
§generation: u64
§

RaidEvent

Fields

§index: usize
§

RaidAddDespawn

Fields

§target: EnemyIdx
§activation_generation: u64
§encounter_generation: PullLifecycleGeneration
§

ExternalBuff

Fields

§index: usize
§

HookTimer

Fields

§timer_id: u32
§source: ActorId
§

CooldownReady

Fields

§cooldown_key: SpellIdx
§

AutoAttack

Fields

§source: ActorId
§target: EnemyIdx
§

EnemyAutoAttack

Fields

§source: EnemyIdx
§target: ActorId

Implementations§

Source§

impl Event

Source

pub const fn priority(&self) -> u8

Returns the stable same-timestamp priority, lower first; insertion order breaks ties within a priority.

Source

pub fn timestamp(&self) -> SimTime

Trait Implementations§

Source§

impl Clone for Event

Source§

fn clone(&self) -> Event

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Event

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for Event

Auto Trait Implementations§

§

impl Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnsafeUnpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> SpecConfig for T
where T: Any + Debug + Send,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more
Source§

impl<T> ResolverSyncBound for T
where T: Sync + ?Sized,