Пример #1
0
        public TaskUnitSelection(IUnit i_unit, MissionTaskData i_taskData, IMissionProposal i_proposal)
        {
            mMissionProposal  = i_proposal;
            mUnit             = i_unit;
            mTaskIndex        = i_taskData.Index;
            mStat             = i_taskData.StatRequirement;
            mPowerRequirement = i_taskData.PowerRequirement;
            mModel            = new ViewModel();

            SetUpModel();

            mTaskProposal = new MissionTaskProposal(mTaskIndex, mUnit.GetID(), NumUnitsRequired);
        }
Пример #2
0
 private void SetTaskProposal(int i_taskIndex, MissionTaskProposal i_taskProposal)
 {
     mTaskProposals[i_taskIndex] = i_taskProposal;
 }
Пример #3
0
 public void RemoveProposal(int i_taskIndex, MissionTaskProposal i_taskProposal)
 {
     SetTaskProposal(i_taskIndex, null);
     ChangePromisedUnits(i_taskProposal.UnitID, -i_taskProposal.UnitCount);
 }
Пример #4
0
 public void AddProposal(int i_taskIndex, MissionTaskProposal i_taskProposal)
 {
     SetTaskProposal(i_taskIndex, i_taskProposal);
     ChangePromisedUnits(i_taskProposal.UnitID, i_taskProposal.UnitCount);
 }