public void After() { foreach (Entity l_entity in EntityContainer.Entities) { Entity.markForDestruction(l_entity); EventQueue.enqueueEvent(TestEventQueue, EntityDestroyEvent.alloc(l_entity)); } EventQueue.iterate(TestEventQueue); EventQueue.clearAll(TestEventQueue); _TurnTimeline.TurnTimeline.free(_TurnTimeline.TurnTimelineContainer.UniqueTurnTimeline); NavigationEngine.free(NavigationEngineContainer.UniqueNavigationEngine); NavigationGraph.free(NavigationGraphContainer.UniqueNavigationGraph); TestEventQueue = null; }
private void OnEntityDestroyEvent(Entity entity) { EntityDestroyEvent?.Invoke(entity); }