Function event_from_entity_action

Source
pub fn event_from_entity_action(
    action: EntityAction,
    entity_id: EntityId,
    origin: CombatEventOrigin,
) -> EventPluginized<OverlordEvent, OverlordState>
Expand description

Rebuilds the event a drained queue entry stands for, carrying the provenance the entry was queued with.

The queue is a real hop in a modifier’s cascade — the work comes back one or more ticks after the producing dispatch ended — so this is where the mark would be lost if the entry did not carry it.