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; }
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; }