Class TriggerVolumeDeathSystem

All Implemented Interfaces:
ISystem<EntityStore>, QuerySystem<EntityStore>

public final class TriggerVolumeDeathSystem extends DeathSystems.OnDeathSystem
Enqueues an TriggerEventType.ENTITY_DIED event at the victim's position the moment a DeathComponent is added. This drives volume re-evaluation (e.g. "all NPCs cleared") independently of whether a tracked entity is still inside to drive TICK.

The victim's transform is still valid here; corpse removal happens later via CorpseRemoval, and the dead entity already carries DeathComponent, so a living count taken afterwards naturally excludes it.