Пример #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);
             }
         }
         UiAnimMgr.instance.PlayAnim("GreenCheck", this.m_greenCheckEffectRoot, Vector3.get_zero(), 1.8f, 0f);
         Main.instance.m_UISound.Play_GreenCheck();
         this.m_training = false;
         this.m_troopBuildProgressRing.get_gameObject().SetActive(false);
         this.m_troopBuildProgressFill.get_gameObject().SetActive(false);
         this.m_troopOwnedCheckmark.get_gameObject().SetActive(true);
         this.m_troopPortraitImage.get_gameObject().SetActive(true);
         this.m_timeRemainingText.get_gameObject().SetActive(false);
         this.m_troopPortraitImage.set_material(null);
         PersistentShipmentData.shipmentDictionary.Remove(shipmentDBID);
         MobilePlayerGarrisonDataRequest mobilePlayerGarrisonDataRequest = new MobilePlayerGarrisonDataRequest();
         mobilePlayerGarrisonDataRequest.GarrTypeID = 3;
         Login.instance.SendToMobileServer(mobilePlayerGarrisonDataRequest);
     }
 }
Пример #2
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);
     }
 }
Пример #3
0
    private void MobileClientCompleteShipmentResultHandler(MobileClientCompleteShipmentResult msg)
    {
        SHIPMENT_RESULT result = (SHIPMENT_RESULT)msg.Result;

        if (this.CompleteShipmentResultAction != null)
        {
            this.CompleteShipmentResultAction.Invoke(result, msg.ShipmentID);
        }
    }
Пример #4
0
        private void CompleteShipmentResultHandler(LegionCompanionWrapper.CompleteShipmentResultEvent eventArgs)
        {
            SHIPMENT_RESULT result = (SHIPMENT_RESULT)eventArgs.Result;

            if (this.CompleteShipmentResultAction != null)
            {
                this.CompleteShipmentResultAction(result, eventArgs.ShipmentID);
            }
        }