public void ChangeNameAck(long nResult) { if (nResult == 0L) { TsLog.Log("이름 변경 성공", new object[0]); NrCharUser nrCharUser = NrTSingleton <NkCharManager> .Instance.GetChar(1) as NrCharUser; NrPersonInfoBase personInfo = nrCharUser.GetPersonInfo(); personInfo.SetCharName(this.m_newName); NrTSingleton <NrMainSystem> .Instance.SetLatestPersonID(personInfo.GetPersonID().ToString()); MsgHandler.Handle("Req_CONNECT_GAMESERVER_REQ", new object[] { personInfo.GetPersonID() }); FacadeHandler.MoveStage(Scene.Type.PREPAREGAME); NrTSingleton <NkQuestManager> .Instance.SortingQuestInGroup(); NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.CHANGENAME_DLG); } else if (nResult == -20L) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("90")); this.m_btOk.SetEnabled(true); } else { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("91")); this.m_btOk.SetEnabled(true); } }
public bool GS_AUTH_SESSION_ACK() { TsLog.Log("{0}.GS_AUTH_SESSION_ACK", new object[] { StageSystem.GetCurrentStageName() }); FacadeHandler.MoveStage(Scene.Type.SELECTCHAR); return(true); }
public void ReLogin(bool bShow = true) { if (this.m_ReLogin) { return; } this.m_bSendPing = false; this.m_nLatestPersonID = 0L; BaseNet_Game.GetInstance().Quit(); BaseNet_Login.GetInstance().Quit(); NrTSingleton <NkAutoRelogin> .Instance.SetActivity(false); Option.SetPause(false); TsLog.LogError("NEED REFACTORING - Old Stage Stack System Access!!!!!!!!!!!!", new object[0]); FacadeHandler.ClearStageStack(); FacadeHandler.MoveStage(Scene.Type.LOGIN); this.ClearGameInfo(bShow); this.m_ReLogin = true; }
protected override void OnUpdateAfterStagePrework() { if (NrTSingleton <NkCharManager> .Instance.CharacterListSetComplete && !this.m_bCalledNextStage) { if (NrLoadPageScreen.LoginLatestChar) { if ((NrCharUser)NrTSingleton <NkCharManager> .Instance.GetCharByPersonID(NrTSingleton <NrMainSystem> .Instance.GetLatestPersonID()) == null) { MsgBoxUI msgBoxUI = (MsgBoxUI)NrTSingleton <FormsManager> .Instance.LoadGroupForm(G_ID.MSGBOX_DLG); if (msgBoxUI != null) { msgBoxUI.SetMsg(new YesDelegate(this._OnMessageBoxOK_QuitGame), null, "경고", "캐릭터 정보를 읽어오는데 실패하였습니다...\r\n어플을 재실행해주세요.", eMsgType.MB_OK, 2); NrLoadPageScreen.ShowHideLoadingImg(false); } TsLog.LogWarning("CID {0} User not found!", new object[] { NrTSingleton <NrMainSystem> .Instance.GetLatestPersonID() }); } else { TsLog.LogWarning("StagePacketMsgHandler.CONNECT_GAMESERVER_REQ=============", new object[0]); MsgHandler.Handle("Req_CONNECT_GAMESERVER_REQ", new object[] { NrTSingleton <NrMainSystem> .Instance.GetLatestPersonID() }); NrTSingleton <NkQuestManager> .Instance.SortingQuestInGroup(); FacadeHandler.MoveStage(Scene.Type.PREPAREGAME); } } else { TsLog.LogWarning("==========NEXT STAGE=============", new object[0]); FacadeHandler.MoveStage(Scene.Type.SELECTCHAR); } this.m_bCalledNextStage = true; } }
public bool OnWebCall(string WebCall) { bool flag = false; Debug.Log("OnWebCall = " + WebCall); if (WebCall.Contains("close")) { TsPlatform.Operator.CloseWebView(); if (Scene.CurScene == Scene.Type.LOGIN) { NrMobileAuthSystem.Instance.Auth.DeleteAuthInfo(); } MsgHandler.Handle("ShowPlatformLogin", new object[0]); return(true); } if (WebCall.Contains("InternetConnnetError")) { Debug.Log("!!!!!!!InternetConnnetError!!"); MsgHandler.Handle("InternetConnnetErrorMessage", new object[0]); TsPlatform.Operator.CloseWebView(); MsgHandler.Handle("ShowPlatformLogin", new object[0]); return(true); } string value = "mobile/android_server_list_proc.aspx"; if (WebCall.Length == 0 || !WebCall.Contains(value)) { return(true); } if (WebCall.Contains(value)) { string[] array = WebCall.Split(new char[] { '?' }); if (array.Length < 1) { return(flag); } string[] array2 = array[1].Split(new char[] { '&' }); string text = string.Empty; if (array2.Length >= 0) { string[] array3 = array2[0].Split(new char[] { '=' }); if (array3.Length > 0) { text = array3[1]; } } string text2 = text; switch (text2) { case "0": { TsPlatform.Operator.CloseWebView(); string text3 = array2[1].Split(new char[] { '=' })[1]; string text4 = array2[2].Split(new char[] { '=' })[1]; string text5 = array2[3].Split(new char[] { '=' })[1]; string text6 = array2[4].Split(new char[] { '=' })[1]; string text7 = array2[5].Split(new char[] { '=' })[1]; string text8 = array2[7].Split(new char[] { '=' })[1]; if (!string.IsNullOrEmpty(text5)) { long num2 = 0L; long.TryParse(text5, out num2); NrTSingleton <NrMainSystem> .Instance.SetLatestPersonID(num2.ToString()); } long cID = TsPlatform.Operator.GetCID(); if (cID != 0L) { NrTSingleton <NrMainSystem> .Instance.SetLatestPersonID(cID.ToString()); } NrTSingleton <NrMainSystem> .Instance.m_strWorldServerIP = text3.Trim(); if (!int.TryParse(text4.Trim(), out NrTSingleton <NrMainSystem> .Instance.m_nWorldServerPort)) { NrTSingleton <NrMainSystem> .Instance.m_nWorldServerPort = Client.GetWorldServerPort(); } NrTSingleton <NkCharManager> .Instance.m_kCharAccountInfo.m_szAuthKey = text6.Trim(); NrTSingleton <NkCharManager> .Instance.m_kCharAccountInfo.m_nSerialNumber = long.Parse(text7.Trim()); PlayerPrefs.SetString(NrPrefsKey.PLAYER_PREFS_MOBILEAUTHKEY, NrTSingleton <NkCharManager> .Instance.m_kCharAccountInfo.m_szAuthKey); if (text8.Equals(NrGlobalReference.CDNTYPE)) { NrTSingleton <NrGlobalReference> .Instance.ChangeEdgeDataCDNPath(); } if (text8.Equals(NrGlobalReference.CDNTYPEUS)) { NrTSingleton <NrGlobalReference> .Instance.ChangeEdgeDataCDNPath(); } Debug.LogError(string.Concat(new string[] { "======================== CDNTYPE : ", NrGlobalReference.CDNTYPE, " === CDNTYPEUS ", NrGlobalReference.CDNTYPEUS, " === ", text8 })); if (NrTSingleton <NrGlobalReference> .Instance.localWWW) { FacadeHandler.MoveStage(Scene.Type.INITIALIZE); } else { FacadeHandler.MoveStage(Scene.Type.NPATCH_DOWNLOAD); } ErrorCollectorManager.Start(Application.dataPath, NrTSingleton <NrGlobalReference> .Instance.GetCurrentServiceAreaInfo().szOriginalDataCDNPath, new ECHandler(), long.Parse(text7.Trim()), NrTSingleton <NkClientLogic> .Instance.GetPlayerPlatformType(), (int)NrTSingleton <NkClientLogic> .Instance.AuthPlatformType, NrTSingleton <NrGlobalReference> .Instance.STR_MOBILE_VER); TsLog.LogWarning("OnWecall Complete!!!", new object[0]); flag = true; break; } case "errMsg": { TsPlatform.Operator.CloseWebView(); this.DeleteAuthInfo(); string text9 = array2[1].Split(new char[] { '=' })[1]; text9 = WWW.UnEscapeURL(text9); MsgHandler.Handle("LoginFailed", new object[] { text9 }); flag = true; break; } case "ReLogin": TsPlatform.Operator.CloseWebView(); this.DeleteAuthInfo(); MsgHandler.Handle("LoginFailed", new object[] { text }); flag = true; break; } if (!flag) { this.DeleteAuthInfo(); MsgHandler.Handle("LoginFailed", new object[] { "WebCallError" }); flag = true; } } return(flag); }
private void On_Click_GameStart(IUIObject a_oObject) { FacadeHandler.MoveStage(Scene.Type.INITIALIZE); }
protected override void OnUpdateAfterStagePrework() { FacadeHandler.MoveStage(Scene.Type.LOGIN); }