Esempio n. 1
0
 public bool ExecuteAction(GameContext context, List<MJsonMessageAll> msgList)
 {
     return context.OnOpenDora();
 }
Esempio n. 2
0
        public bool ExecuteAction(GameContext context, List<MJsonMessageAll> msgList)
        {
            var nextAction = SelectHighPriorityMessage(msgList);

            if (nextAction.IsNONE())
            {
                return context.OnOpenDora();
            }
            else if (nextAction.IsHORA())
            {
                return context.OnHora(nextAction.actor, nextAction.target, nextAction.pai);
            }
            else
            {
                Debug.Assert(false);
                return false;  // If this line executed, It is Error ;
            }
        }