public static void AddPendingActions(this GameTurn turn, List<GameActionState> actions, GameAction parent, GameActionPriority priority, bool isExecutable)
 {
     var temp = turn.PendingActions;
     foreach (GameActionState state in actions)
     {
         var action = new GameAction { State = state, Parent = parent, Priority = priority, IsExecutable = isExecutable };
         temp.Add(action);
     }
     turn.PendingActions = temp;
 }
示例#2
0
        public static void AddPendingActions(this GameTurn turn, List <GameActionState> actions, GameAction parent, GameActionPriority priority, bool isExecutable)
        {
            var temp = turn.PendingActions;

            foreach (GameActionState state in actions)
            {
                var action = new GameAction {
                    State = state, Parent = parent, Priority = priority, IsExecutable = isExecutable
                };
                temp.Add(action);
            }
            turn.PendingActions = temp;
        }