public static StartTurnEvent alloc(TurnTimeline p_turnTimeline, EventQueue p_entityTurnActionQueue) { StartTurnEvent l_instance = new StartTurnEvent(); l_instance.TurnTimeline = p_turnTimeline; l_instance.EntityActionQueue = p_entityTurnActionQueue; return(l_instance); }
public override void Execute(EventQueue p_eventQueue) { base.Execute(p_eventQueue); MyEvent <Entity> .broadcast(ref Entity.OnEntityTurnEnd, ref Entity); EventQueue.enqueueEvent(p_eventQueue, WaitForNextFrame.alloc()); EventQueue.enqueueEvent(p_eventQueue, StartTurnEvent.alloc(TurnTimeline, EntityActionQueue)); }