示例#1
0
 public override void OnFinalize()
 {
     base.OnFinalize();
     _partyVm       = null;
     _parent        = null;
     _mainPartyList = null;
 }
 public override void OnFinalize()
 {
     base.OnFinalize();
     _mainPartyPrisoners = null;
     _partyLogic         = null;
     _partyVM            = null;
     _parent             = null;
 }
 public RecruitPrisonerVM(PartyEnhancementsVM parent, PartyVM partyVm, PartyScreenLogic logic)
 {
     _parent             = parent;
     _partyVM            = partyVm;
     _partyLogic         = logic;
     _mainPartyPrisoners = _partyVM.MainPartyPrisoners;
     _recruitHint        = new HintViewModel(new TextObject("Recruit All Prisoners.\nClick with CTRL pressed to ignore party size limits"));
 }
示例#4
0
 public TransferWoundedTroopsVM(PartyEnhancementsVM parent, PartyVM partyVm, bool shouldShow)
 {
     _parent                    = parent;
     _partyVm                   = partyVm;
     _mainPartyList             = partyVm?.MainPartyTroops;
     _shouldShowTransferWounded = shouldShow;
     _woundedHint               = new HintViewModel(new TextObject("Transfer All Wounded"));
 }
        public UpgradeAllTroopsVM(PartyEnhancementsVM parent, PartyVM partyVm, PartyScreenLogic logic)
        {
            _parent        = parent;
            _partyVM       = partyVm;
            _partyLogic    = logic;
            _mainPartyList = _partyVM.MainPartyTroops;

            _upgradeHint =
                new HintViewModel(new TextObject("Upgrade All Troops\nRight click to upgrade only paths set by you"));
        }