FuzeboxActionList GetCombinedPlayerSequence() { FuzeboxActionList combinedSequences = new FuzeboxActionList(); foreach (FuzeboxActionManager fam in actionManagers) { FuzeboxActionList fal = fam.GetActionsSequenceList(); if (fal == null) { throw new System.Exception($"Empty list in {fam}."); } foreach (FuzeboxAction fa in fam.GetActionsSequenceList()) { combinedSequences.Add(fa); } } return(combinedSequences); }
public FuzeboxActionList GetFuzeList() { FuzeboxActionList selectedFuzes = new FuzeboxActionList(); if (fuzeSlots.Length <= 0) { throw new System.Exception("FuzeManager is missing Fuze Slots."); } foreach (FuzeActionButton fuzeSlot in fuzeSlots) { selectedFuzes.Add(fuzeSlot.GetSelectedFuze()); } if (selectedFuzes.Length <= 0) { throw new System.Exception("FuzeSlots of FuzeManager are missing selected Fuzes."); } return(selectedFuzes); }