コード例 #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("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);
         MobilePlayerRequestShipmentTypes obj = new MobilePlayerRequestShipmentTypes();
         Login.instance.SendToMobileServer(obj);
         MobilePlayerRequestShipments obj2 = new MobilePlayerRequestShipments();
         Login.instance.SendToMobileServer(obj2);
         MobilePlayerGarrisonDataRequest mobilePlayerGarrisonDataRequest = new MobilePlayerGarrisonDataRequest();
         mobilePlayerGarrisonDataRequest.GarrTypeID = 3;
         Login.instance.SendToMobileServer(mobilePlayerGarrisonDataRequest);
     }
 }
コード例 #2
0
    private void MobileClientCompleteMissionResultHandler(MobileClientCompleteMissionResult msg)
    {
        Debug.Log(string.Concat(new object[]
        {
            "CompleteMissionResult: ID=",
            msg.GarrMissionID,
            ", result=",
            msg.Result,
            " success chance was ",
            msg.MissionSuccessChance
        }));
        PersistentMissionData.UpdateMission(msg.Mission);
        if (this.CompleteMissionResultAction != null)
        {
            this.CompleteMissionResultAction.Invoke(msg.GarrMissionID, msg.Result, (int)msg.MissionSuccessChance);
        }
        MobilePlayerGarrisonDataRequest mobilePlayerGarrisonDataRequest = new MobilePlayerGarrisonDataRequest();

        mobilePlayerGarrisonDataRequest.GarrTypeID = 3;
        Login.instance.SendToMobileServer(mobilePlayerGarrisonDataRequest);
        MobilePlayerRequestShipmentTypes obj = new MobilePlayerRequestShipmentTypes();

        Login.instance.SendToMobileServer(obj);
        MobilePlayerRequestShipments obj2 = new MobilePlayerRequestShipments();

        Login.instance.SendToMobileServer(obj2);
        MobilePlayerFollowerEquipmentRequest mobilePlayerFollowerEquipmentRequest = new MobilePlayerFollowerEquipmentRequest();

        mobilePlayerFollowerEquipmentRequest.GarrFollowerTypeID = 4;
        Login.instance.SendToMobileServer(mobilePlayerFollowerEquipmentRequest);
    }
コード例 #3
0
    public void MobileRequestData()
    {
        MobilePlayerGarrisonDataRequest mobilePlayerGarrisonDataRequest = new MobilePlayerGarrisonDataRequest();

        mobilePlayerGarrisonDataRequest.GarrTypeID = 3;
        Login.instance.SendToMobileServer(mobilePlayerGarrisonDataRequest);
        MobilePlayerRequestShipmentTypes obj = new MobilePlayerRequestShipmentTypes();

        Login.instance.SendToMobileServer(obj);
        MobilePlayerRequestShipments obj2 = new MobilePlayerRequestShipments();

        Login.instance.SendToMobileServer(obj2);
        this.RequestWorldQuests();
        MobilePlayerFollowerEquipmentRequest mobilePlayerFollowerEquipmentRequest = new MobilePlayerFollowerEquipmentRequest();

        mobilePlayerFollowerEquipmentRequest.GarrFollowerTypeID = 4;
        Login.instance.SendToMobileServer(mobilePlayerFollowerEquipmentRequest);
        MobilePlayerFollowerArmamentsRequest mobilePlayerFollowerArmamentsRequest = new MobilePlayerFollowerArmamentsRequest();

        mobilePlayerFollowerArmamentsRequest.GarrFollowerTypeID = 4;
        Login.instance.SendToMobileServer(mobilePlayerFollowerArmamentsRequest);
        MobilePlayerWorldQuestBountiesRequest obj3 = new MobilePlayerWorldQuestBountiesRequest();

        Login.instance.SendToMobileServer(obj3);
        MobilePlayerFollowerActivationDataRequest mobilePlayerFollowerActivationDataRequest = new MobilePlayerFollowerActivationDataRequest();

        mobilePlayerFollowerActivationDataRequest.GarrTypeID = 3;
        Login.instance.SendToMobileServer(mobilePlayerFollowerActivationDataRequest);
        MobilePlayerGetArtifactInfo obj4 = new MobilePlayerGetArtifactInfo();

        Login.instance.SendToMobileServer(obj4);
    }
コード例 #4
0
 private void HandleRecruitResult(int result)
 {
     if (result == 0)
     {
         MobilePlayerRequestShipments obj = new MobilePlayerRequestShipments();
         Login.instance.SendToMobileServer(obj);
     }
 }