Beispiel #1
0
 public void OnEnable()
 {
     Main.instance.m_backButtonManager.PushBackAction(BackActionType.hideAllPopups, null);
     Main.instance.m_UISound.Play_ShowGenericTooltip();
     Main.instance.m_canvasBlurManager.AddBlurRef_MainCanvas();
     Main.instance.ArmamentInventoryChangedAction += new Action(this.HandleArmamentsChanged);
     LegionCompanionWrapper.RequestFollowerArmamentsExtended((int)GarrisonStatus.GarrisonFollowerType);
 }
 private void UseFollowerArmamentResultHandler(LegionCompanionWrapper.UseFollowerArmamentResultEvent eventArgs)
 {
     if (eventArgs.Result == 0)
     {
         PersistentFollowerData.AddOrUpdateFollower(eventArgs.Follower);
         LegionCompanionWrapper.RequestFollowerArmamentsExtended((int)GarrisonStatus.GarrisonFollowerType);
     }
     else
     {
         AllPopups.instance.ShowGenericPopupFull(StaticDB.GetString("USE_ARMAMENT_FAILED", null));
     }
     if (this.UseArmamentResultAction != null)
     {
         this.UseArmamentResultAction(eventArgs.Result, eventArgs.OldFollower, eventArgs.Follower);
     }
 }
 public void MobileRequestData()
 {
     LegionCompanionWrapper.RequestShipmentTypes((int)GarrisonStatus.GarrisonType);
     LegionCompanionWrapper.RequestShipments((int)GarrisonStatus.GarrisonType);
     LegionCompanionWrapper.RequestWorldQuestBounties(10);
     this.RequestWorldQuests();
     LegionCompanionWrapper.RequestFollowerEquipment((int)GarrisonStatus.GarrisonFollowerType);
     LegionCompanionWrapper.RequestFollowerArmamentsExtended((int)GarrisonStatus.GarrisonFollowerType);
     LegionCompanionWrapper.RequestFollowerActivationData((int)GarrisonStatus.GarrisonType);
     LegionCompanionWrapper.GetArtifactInfo();
     LegionCompanionWrapper.RequestContributionInfo();
     LegionCompanionWrapper.RequestAreaPoiInfo();
     LegionCompanionWrapper.RequestMaxFollowers((int)GarrisonStatus.GarrisonFollowerType);
     LegionCompanionWrapper.RequestGarrisonData((int)GarrisonStatus.GarrisonType);
     LegionCompanionWrapper.RequestAreaPoiInfo();
     if (this.GarrisonDataResetFinishedAction != null)
     {
         this.GarrisonDataResetFinishedAction();
     }
 }