public MissionTask(MissionTaskData i_data, MissionProposal i_missionProposal) { mModel = new ViewModel(); mData = i_data; SetUpModel(); AddUnitsEligibleForTask(i_missionProposal); }
private void AddUnitsEligibleForTask(MissionProposal i_proposal) { List <IUnit> unitsEligible = StatCalculator.Instance.GetUnitsWithStat(Data.StatRequirement); foreach (IUnit unit in unitsEligible) { TaskUnitSelection selection = new TaskUnitSelection(unit, Data, i_proposal); mUnitsEligibleForTask.Add(selection); } }