コード例 #1
0
        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);
        }
コード例 #2
0
        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));
        }