Class SpawnReferenceSystems.MarkerDeathSystem

All Implemented Interfaces:
ISystem<EntityStore>, QuerySystem<EntityStore>
Enclosing class:
SpawnReferenceSystems

public static class SpawnReferenceSystems.MarkerDeathSystem extends DeathSystems.OnDeathSystem
Disconnects a spawned NPC from its SpawnMarkerEntity as soon as it dies, rather than waiting for the corpse to be removed. This frees the marker's spawn slot during the death animation so it can respawn or be manually re-triggered. The SpawnMarkerReference is removed so the eventual removal does not disconnect a second time.