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); }
public void OnEnable() { Main.instance.m_backButtonManager.PushBackAction(BackAction.hideAllPopups, null); Main.instance.m_UISound.Play_ShowGenericTooltip(); Main.instance.m_canvasBlurManager.AddBlurRef_MainCanvas(); Main expr_34 = Main.instance; expr_34.ArmamentInventoryChangedAction = (Action)Delegate.Combine(expr_34.ArmamentInventoryChangedAction, new Action(this.HandleArmamentsChanged)); MobilePlayerFollowerArmamentsRequest mobilePlayerFollowerArmamentsRequest = new MobilePlayerFollowerArmamentsRequest(); mobilePlayerFollowerArmamentsRequest.GarrFollowerTypeID = 4; Login.instance.SendToMobileServer(mobilePlayerFollowerArmamentsRequest); }
private void MobileClientUseFollowerArmamentResultHandler(MobileClientUseFollowerArmamentResult msg) { GARRISON_RESULT result = (GARRISON_RESULT)msg.Result; if (result == GARRISON_RESULT.SUCCESS) { PersistentFollowerData.AddOrUpdateFollower(msg.Follower); MobilePlayerFollowerArmamentsRequest mobilePlayerFollowerArmamentsRequest = new MobilePlayerFollowerArmamentsRequest(); mobilePlayerFollowerArmamentsRequest.GarrFollowerTypeID = 4; Login.instance.SendToMobileServer(mobilePlayerFollowerArmamentsRequest); } else { AllPopups.instance.ShowGenericPopup(StaticDB.GetString("USE_ARMAMENT_FAILED", null), result.ToString()); } if (this.UseArmamentResultAction != null) { this.UseArmamentResultAction.Invoke(msg.Result, msg.OldFollower, msg.Follower); } }