public static void ActionCombineSquads(this Queue <IMoveAction> moveActions, List <Squad> squadList, Squad squadAlfa, Squad squadDelta, IdGenerator idGenerator, bool disableOld = true) { moveActions.ActionSelectSquad(squadAlfa.Id); moveActions.ActionAddSquadToCurrentSelection(squadDelta.Id); var newSquad = moveActions.ActionCreateNewSquadAlreadySelected(squadList, idGenerator); if (disableOld) { squadAlfa.Disable(); squadDelta.Disable(); } else { newSquad.Disable(); } }
public static void ActionCombineSquads(this Queue <IMoveAction> moveActions, List <Squad> squadList, int squadAlfaId, int squadDeltaId, IdGenerator squadIdGenerator, bool disableOld = true) => moveActions.ActionCombineSquads(squadList, squadList.GetSquadById(squadAlfaId), squadList.GetSquadById(squadDeltaId), squadIdGenerator, disableOld);
public static Squad ActionCreateNewSquadAlreadySelected(this Queue <IMoveAction> actions, List <Squad> squadList, IdGenerator idGenerator) => new Squad(actions, squadList, idGenerator);