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); }
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); }
private void MobileClientFollowerChangedQualityHandler(MobileClientFollowerChangedQuality msg) { PersistentFollowerData.AddOrUpdateFollower(msg.Follower); if (this.UseEquipmentResultAction != null) { this.UseEquipmentResultAction.Invoke(msg.OldFollower, msg.Follower); } MobilePlayerFollowerEquipmentRequest mobilePlayerFollowerEquipmentRequest = new MobilePlayerFollowerEquipmentRequest(); mobilePlayerFollowerEquipmentRequest.GarrFollowerTypeID = 4; Login.instance.SendToMobileServer(mobilePlayerFollowerEquipmentRequest); }
public void OnEnable() { Main.instance.m_UISound.Play_ShowGenericTooltip(); Main.instance.m_canvasBlurManager.AddBlurRef_MainCanvas(); Main.instance.m_backButtonManager.PushBackAction(BackAction.hideAllPopups, null); Main expr_34 = Main.instance; expr_34.EquipmentInventoryChangedAction = (Action)Delegate.Combine(expr_34.EquipmentInventoryChangedAction, new Action(this.UpdateDisplayCB)); MobilePlayerFollowerEquipmentRequest mobilePlayerFollowerEquipmentRequest = new MobilePlayerFollowerEquipmentRequest(); mobilePlayerFollowerEquipmentRequest.GarrFollowerTypeID = 4; Login.instance.SendToMobileServer(mobilePlayerFollowerEquipmentRequest); }