示例#1
0
 private void HandleCollectTroopResult(SHIPMENT_RESULT result, ulong shipmentDBID)
 {
     if (result == SHIPMENT_RESULT.SUCCESS && shipmentDBID == this.m_shipmentDBID)
     {
         if (this.m_glowLoopHandle != null)
         {
             UiAnimation anim = this.m_glowLoopHandle.GetAnim();
             if (anim != null)
             {
                 anim.Stop(0.5f);
             }
             this.m_glowLoopHandle = null;
         }
         UiAnimMgr.instance.PlayAnim("GreenCheckRound", this.m_greenCheckEffectRoot, Vector3.zero, 1.8f, 0f);
         Main.instance.m_UISound.Play_GreenCheck();
         this.m_training = false;
         this.m_troopOwnedCheckmark.gameObject.SetActive(true);
         this.m_troopPortraitImage.gameObject.SetActive(true);
         this.m_timeRemainingText.gameObject.SetActive(false);
         this.m_troopPortraitImage.material = null;
         PersistentShipmentData.shipmentDictionary.Remove(shipmentDBID);
         LegionCompanionWrapper.RequestShipmentTypes((int)GarrisonStatus.GarrisonType);
         LegionCompanionWrapper.RequestShipments((int)GarrisonStatus.GarrisonType);
         LegionCompanionWrapper.RequestGarrisonData((int)GarrisonStatus.GarrisonType);
     }
 }
 private void HandleRecruitResult(int result)
 {
     if (result == 0)
     {
         LegionCompanionWrapper.RequestShipments((int)GarrisonStatus.GarrisonType);
     }
 }
 private void CreateShipmentResultHandler(LegionCompanionWrapper.CreateShipmentResultEvent eventArgs)
 {
     if (eventArgs.Result == 0)
     {
         LegionCompanionWrapper.RequestShipmentTypes((int)GarrisonStatus.GarrisonType);
         LegionCompanionWrapper.RequestShipments((int)GarrisonStatus.GarrisonType);
         LegionCompanionWrapper.RequestGarrisonData((int)GarrisonStatus.GarrisonType);
     }
     if (this.CreateShipmentResultAction != null)
     {
         this.CreateShipmentResultAction(eventArgs.Result);
     }
 }
 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);
 }