public void OnEnable()
 {
     Main.instance.m_UISound.Play_ShowGenericTooltip();
     Main.instance.m_canvasBlurManager.AddBlurRef_MainCanvas();
     Main.instance.m_backButtonManager.PushBackAction(BackActionType.hideAllPopups, null);
     Singleton <GarrisonWrapper> .Instance.EquipmentInventoryChangedAction += this.UpdateDisplayCB;
     LegionCompanionWrapper.RequestFollowerEquipment((int)GarrisonStatus.GarrisonFollowerType);
 }
 private void FollowerChangedQualityHandler(LegionCompanionWrapper.FollowerChangedQualityEvent eventArgs)
 {
     PersistentFollowerData.AddOrUpdateFollower(eventArgs.Follower);
     if (this.UseEquipmentResultAction != null)
     {
         this.UseEquipmentResultAction(eventArgs.OldFollower, eventArgs.Follower);
     }
     LegionCompanionWrapper.RequestFollowerEquipment((int)GarrisonStatus.GarrisonFollowerType);
 }
 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();
     }
 }
 private void CompleteMissionResultHandler(LegionCompanionWrapper.GarrisonCompleteMissionResultEvent eventArgs)
 {
     PersistentMissionData.UpdateMission(eventArgs.Result.Mission);
     AdventureMapMissionSite[] componentsInChildren = AdventureMapPanel.instance.m_mapViewContentsRT.GetComponentsInChildren <AdventureMapMissionSite>(true);
     foreach (AdventureMapMissionSite adventureMapMissionSite in componentsInChildren)
     {
         if (!adventureMapMissionSite.m_isStackablePreview)
         {
             if (adventureMapMissionSite.GetGarrMissionID() == eventArgs.Result.GarrMissionID)
             {
                 if (!adventureMapMissionSite.gameObject.activeSelf)
                 {
                     adventureMapMissionSite.gameObject.SetActive(true);
                 }
                 adventureMapMissionSite.HandleCompleteMissionResult(eventArgs.Result.GarrMissionID, eventArgs.Result.BonusRollSucceeded);
                 break;
             }
         }
     }
     LegionCompanionWrapper.RequestShipmentTypes((int)GarrisonStatus.GarrisonType);
     LegionCompanionWrapper.RequestShipments((int)GarrisonStatus.GarrisonType);
     LegionCompanionWrapper.RequestFollowerEquipment((int)GarrisonStatus.GarrisonFollowerType);
     LegionCompanionWrapper.RequestGarrisonData((int)GarrisonStatus.GarrisonType);
 }