public ControlGroup(string colorGroupName, string[] commands, GameStateCondition neededGameStateCondition) : base( neededGameStateCondition) { this.colorGroupName = colorGroupName; this.commands = commands.ToList(); }
public ControlGroupSet(ControlGroupSet copyFromSet, ControlGroup[] controlGroups, GameStateCondition neededGameStateCondition = null) { List <ControlGroup> controlGroupList = new List <ControlGroup>(); controlGroupList.AddRange(copyFromSet.controlGroups); controlGroupList.AddRange(controlGroups); this.controlGroups = controlGroupList.ToArray(); if (neededGameStateCondition != null) { this.NeededGameStateCondition = neededGameStateCondition; } else if (copyFromSet.NeededGameStateCondition != null) { this.NeededGameStateCondition = copyFromSet.NeededGameStateCondition; } }
public ControlGroup(string[] commands, GameStateCondition neededGameStateCondition) : this(null, commands, neededGameStateCondition) { }
public ControlGroupSet(ControlGroup[] controlGroups, GameStateCondition neededGameStateCondition = null) : base( neededGameStateCondition) { this.controlGroups = controlGroups; }