private void CommandCharList() { NrCharBase[] @char = NrTSingleton <NkCharManager> .Instance.Get_Char(); int num = 0; NrCharBase[] array = @char; for (int i = 0; i < array.Length; i++) { NrCharBase nrCharBase = array[i]; if (nrCharBase != null) { NrTSingleton <NrDebugConsole> .Instance.Print(string.Concat(new object[] { num.ToString(), ": ", nrCharBase.GetCharName(), "(", nrCharBase.GetCharUnique(), ")" })); } num++; } }
public override void Update() { if (Time.time >= this.sendtime) { this.sendtime += 10f; NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1); if (@char != null) { GS_SERVER_CHARINFO_REQ gS_SERVER_CHARINFO_REQ = new GS_SERVER_CHARINFO_REQ(); gS_SERVER_CHARINFO_REQ.siCharUnique = @char.GetCharUnique(); gS_SERVER_CHARINFO_REQ.bTimeOnly = true; SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_SERVER_CHARINFO_REQ, gS_SERVER_CHARINFO_REQ); } } int rewardNoticeCount = NrTSingleton <ChallengeManager> .Instance.GetRewardNoticeCount(); if (0 < rewardNoticeCount) { if (this.count != rewardNoticeCount) { int num = rewardNoticeCount; this.challengeNotice.Visible = true; this.challengeNotice.Text = num.ToString(); this.count = num; } } else if (this.challengeNotice.Visible) { this.challengeNotice.Visible = false; } }
public bool AddGeneral(string ActorName, bool Hide) { NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1); return(@char != null && this.AddActor(ActorName, new NkCharIDInfo { m_nCharUnique = @char.GetCharUnique(), m_nClientID = @char.GetID(), m_nWorldID = @char.GetWorldID() }, false, Hide)); }
public bool CheckAutoMoveKind() { QuestAutoPathInfo autoPathInfo = NrTSingleton <NkQuestManager> .Instance.GetAutoPathInfo(); if (autoPathInfo != null) { if (!autoPathInfo.m_bComplete) { autoPathInfo.m_kQuest.AfterAutoPath(); } else if (autoPathInfo.m_nCharKind > 0) { NrCharBase charByCharKind = NrTSingleton <NkCharManager> .Instance.GetCharByCharKind(autoPathInfo.m_nCharKind); if (charByCharKind != null) { if (!this.m_pkChar.IsCloseToTalkNPC(ref charByCharKind, 2f)) { return(false); } NrCharKindInfo charKindInfo = charByCharKind.GetCharKindInfo(); if (charKindInfo != null) { NpcTalkUI_DLG npcTalkUI_DLG = (NpcTalkUI_DLG)NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.NPCTALK_DLG); if (npcTalkUI_DLG != null) { npcTalkUI_DLG.SetNpcID(charKindInfo.GetCharKind(), charByCharKind.GetCharUnique()); npcTalkUI_DLG.Show(); } CHARKIND_NPCINFO cHARKIND_NPCINFO = charKindInfo.GetCHARKIND_NPCINFO(); if (cHARKIND_NPCINFO != null && !string.IsNullOrEmpty(cHARKIND_NPCINFO.SOUND_GREETING)) { TsAudioManager.Instance.AudioContainer.RequestAudioClip("NPC", cHARKIND_NPCINFO.SOUND_GREETING, "GREETING", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay)); } } if (charByCharKind.GetCharObject() != null) { Vector3 position = charByCharKind.GetCharObject().transform.position; this.m_pkChar.m_k3DChar.RequestLookAt(position.x, position.z); } return(true); } else { Debug.Log("null == npc"); } } NrTSingleton <NkQuestManager> .Instance.SetAutoPathInfo(null); } return(false); }
public void MakeChar() { if (this.m_CenterChar == null || this._MakeCharCodes == null) { UnityEngine.Object.Destroy(base.gameObject); return; } this.MakeComplete = false; base.enabled = true; if (this.m_MakeNpcTable == null) { this.m_MakeNpcTable = new Dictionary <string, SubNpc>(); } for (int i = 0; i < this._MakeCharCodes.Count; i++) { float y = this.m_CenterChar.m_k3DChar.GetRootGameObject().transform.localEulerAngles.y; float num = 0f; int num2 = this._PositionList[i]; if (num2 == -1) { num = y + this.degreeTemp[this._GetEmptySlot()]; } else if (0 <= num2 && 5 > num2) { num = y + this.degreeTemp[num2]; } float f = num * 0.0174532924f; POS3D pOS3D = new POS3D(); pOS3D.x = this.m_CenterChar.GetPersonInfo().GetCharPos().x + 15f * Mathf.Sin(f); pOS3D.y = 0f; pOS3D.z = this.m_CenterChar.GetPersonInfo().GetCharPos().z + 15f * Mathf.Cos(f); float f2 = (num + 180f) * 0.0174532924f; POS3D pOS3D2 = new POS3D(); pOS3D2.x = 1f * Mathf.Sin(f2); pOS3D2.y = 0f; pOS3D2.z = 1f * Mathf.Cos(f2); NrCharBase nrCharBase = this._CreateClientNPC(this._MakeCharCodes[i], pOS3D, pOS3D2); if (nrCharBase != null) { SubNpc subNpc = new SubNpc(); subNpc.i32ID = nrCharBase.GetID(); subNpc.CharCode = nrCharBase.GetCharKindInfo().GetCode(); subNpc.i16CharUnique = nrCharBase.GetCharUnique(); if (!this.m_MakeNpcTable.ContainsKey(nrCharBase.GetCharKindInfo().GetCode())) { this.m_MakeNpcTable.Add(nrCharBase.GetCharKindInfo().GetCode(), subNpc); } } } }
public int SetChar(short charunique, short buid, int charkind, eCharKindType kindtype, NrPersonInfoBase kPersonInfo, float speed, ref NrCharPartInfo pkPartInfo, byte nsolidx) { int num = this.AddNewChar(charunique, buid); NkBattleChar @char = this.GetChar(num); if (@char != null) { @char.SetKindType(kindtype); @char.SetPersonInfo(kPersonInfo); NrCharBase char2 = NrTSingleton <NkCharManager> .Instance.GetChar(1); if (charunique == char2.GetCharUnique() && !NrTSingleton <NkBattleReplayManager> .Instance.IsReplay) { @char.MyChar = true; @char.SetSolIdx((short)nsolidx); } if (kindtype == eCharKindType.CKT_USER && charunique != char2.GetCharUnique()) { @char.ChangeCharPartInfo(pkPartInfo, true, true); @char.SetReadyPartInfo(); } if (speed > 0f) { NrPersonInfoBase personInfo = @char.GetPersonInfo(); if (personInfo != null) { personInfo.SetMoveSpeed(speed); } } if (kindtype == eCharKindType.CKT_NPC && @char.GetCurrentOrder() == eBATTLE_ORDER.eBATTLE_ORDER_MOVE) { @char.MoveTo(kPersonInfo.GetDirection().x, kPersonInfo.GetDirection().y, kPersonInfo.GetDirection().z, false); } } return(num); }
public bool AddChar(string ActorName, string CharKindCode, float X, float Y, int Angle, bool Hide) { if (string.IsNullOrEmpty(ActorName) || string.IsNullOrEmpty(CharKindCode)) { return(false); } if (this.IsActor(ActorName)) { TsLog.LogWarning(string.Format("[EventTriggerMiniDrama] ActorManager : Have Equal CharName {0}", ActorName), new object[0]); return(false); } NrCharKindInfo charKindInfoFromCode = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfoFromCode(CharKindCode); if (charKindInfoFromCode == null) { return(false); } NEW_MAKECHAR_INFO nEW_MAKECHAR_INFO = new NEW_MAKECHAR_INFO(); nEW_MAKECHAR_INFO.CharName = TKString.StringChar(charKindInfoFromCode.GetName()); nEW_MAKECHAR_INFO.CharPos.x = X; nEW_MAKECHAR_INFO.CharPos.y = EventTriggerGameHelper.GetGroundPosition(X, Y); nEW_MAKECHAR_INFO.CharPos.z = Y; float f = (float)Angle * 0.0174532924f; nEW_MAKECHAR_INFO.Direction.x = 1f * Mathf.Sin(f); nEW_MAKECHAR_INFO.Direction.y = 0f; nEW_MAKECHAR_INFO.Direction.z = 1f * Mathf.Cos(f); nEW_MAKECHAR_INFO.CharKind = charKindInfoFromCode.GetCharKind(); nEW_MAKECHAR_INFO.CharKindType = 3; nEW_MAKECHAR_INFO.CharUnique = NrTSingleton <NkQuestManager> .Instance.GetClientNpcUnique(); int id = NrTSingleton <NkCharManager> .Instance.SetChar(nEW_MAKECHAR_INFO, false, false); NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(id); NkCharIDInfo nkCharIDInfo = new NkCharIDInfo(); nkCharIDInfo.m_nClientID = @char.GetID(); nkCharIDInfo.m_nCharUnique = @char.GetCharUnique(); nkCharIDInfo.m_nWorldID = @char.GetWorldID(); @char.SetExceptHideForLoad(true); return(this.AddActor(ActorName, nkCharIDInfo, true, Hide)); }
public void NpcClick(IUIObject obj) { UI_UIGuide uI_UIGuide = NrTSingleton <FormsManager> .Instance.GetForm((G_ID)this.m_nWinID) as UI_UIGuide; if (uI_UIGuide != null) { uI_UIGuide.CloseUI = true; } NrCharBase charByCharUnique = NrTSingleton <NkCharManager> .Instance.GetCharByCharUnique(this.m_i16CharUnique); if (charByCharUnique == null) { return; } NrCharKindInfo charKindInfo = charByCharUnique.GetCharKindInfo(); if (charKindInfo == null) { return; } if (!charByCharUnique.IsCharKindATB(16L)) { if (charByCharUnique.IsCharKindATB(8L)) { if (NrTSingleton <NkClientLogic> .Instance.IsNPCTalkState()) { return; } if (charByCharUnique.IsCharKindATB(562949953421312L)) { GS_TREASUREBOX_CLICK_REQ gS_TREASUREBOX_CLICK_REQ = new GS_TREASUREBOX_CLICK_REQ(); gS_TREASUREBOX_CLICK_REQ.i32CharUnique = (int)charByCharUnique.GetCharUnique(); SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_TREASUREBOX_CLICK_REQ, gS_TREASUREBOX_CLICK_REQ); return; } if (charByCharUnique.IsCharKindATB(1125899906842624L)) { if (!NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.IsBountyHunt()) { return; } GS_BABELTOWER_GOLOBBY_REQ gS_BABELTOWER_GOLOBBY_REQ = new GS_BABELTOWER_GOLOBBY_REQ(); gS_BABELTOWER_GOLOBBY_REQ.mode = 0; gS_BABELTOWER_GOLOBBY_REQ.babel_floor = 0; gS_BABELTOWER_GOLOBBY_REQ.babel_subfloor = 0; gS_BABELTOWER_GOLOBBY_REQ.nPersonID = 0L; gS_BABELTOWER_GOLOBBY_REQ.i16BountyHuntUnique = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.BountyHuntUnique; SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_BABELTOWER_GOLOBBY_REQ, gS_BABELTOWER_GOLOBBY_REQ); return; } else { NrTSingleton <NkQuestManager> .Instance.IncreaseQuestParamVal(30, (long)charKindInfo.GetCharKind(), 1L); NrTSingleton <NkQuestManager> .Instance.IncreaseQuestParamVal(8, (long)charKindInfo.GetCharKind(), 1L); NrTSingleton <NkQuestManager> .Instance.IncreaseQuestParamVal(99, (long)charKindInfo.GetCharKind(), 1L); NrTSingleton <NkQuestManager> .Instance.IncreaseQuestParamVal(48, (long)charKindInfo.GetCharKind(), 1L); if (charByCharUnique.GetCharUnique() >= 31300 && charByCharUnique.GetCharUnique() <= 31400) { string text = NrTSingleton <NkQuestManager> .Instance.IsCheckCodeANDParam(QUEST_CONST.eQUESTCODE.QUESTCODE_TAKECHAR, (long)charKindInfo.GetCharKind()); if (text != string.Empty) { TakeTalk_DLG takeTalk_DLG = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.TAKETALK_DLG) as TakeTalk_DLG; if (takeTalk_DLG != null) { takeTalk_DLG.SetNpc(charKindInfo.GetCharKind(), charByCharUnique.GetCharUnique(), text); takeTalk_DLG.Show(); } return; } } if (charByCharUnique.GetCharUnique() >= 31005 && charByCharUnique.GetCharUnique() <= 31200) { return; } NpcTalkUI_DLG npcTalkUI_DLG = (NpcTalkUI_DLG)NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.NPCTALK_DLG); npcTalkUI_DLG.SetNpcID(charKindInfo.GetCharKind(), charByCharUnique.GetCharUnique()); npcTalkUI_DLG.Show(); } } else if (charByCharUnique.IsCharKindATB(4L)) { NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1); if (@char == null) { return; } @char.MoveTo(charByCharUnique.GetCharObject().transform.position); NrTSingleton <NkClientLogic> .Instance.SetPickChar(charByCharUnique); if (charKindInfo.GetCHARKIND_MONSTERINFO() != null) { NrTSingleton <GameGuideManager> .Instance.MonsterLevel = (int)charKindInfo.GetCHARKIND_MONSTERINFO().MINLEVEL; } else { NrTSingleton <GameGuideManager> .Instance.MonsterLevel = 0; } this.Close(); return; } return; } if (charByCharUnique.IsCharKindATB(268435456L)) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("39"), SYSTEM_MESSAGE_TYPE.NORMAL_SYSTEM_MESSAGE); return; } NrCharBase char2 = NrTSingleton <NkCharManager> .Instance.GetChar(1); if (char2 == null) { return; } char2.MoveTo(charByCharUnique.GetCharObject().transform.position); NrTSingleton <NkClientLogic> .Instance.SetPickChar(charByCharUnique); this.Close(); }
public override void Update() { base.Update(); this.frames += 1f; float realtimeSinceStartup = Time.realtimeSinceStartup; if ((double)realtimeSinceStartup > this.lastInterval + (double)this.updateInterval) { this.fps = (float)((double)this.frames / ((double)realtimeSinceStartup - this.lastInterval)); this.frames = 0f; this.lastInterval = (double)realtimeSinceStartup; } if (Battle.BATTLE == null) { string text = string.Format("PING : {0}ms GS : {1} WS : {2}", this.m_fFpsSec * 1000f, this.m_dwGSTick, this.m_dwWSTick); this.m_lbPing.Text = text; } else { string text2 = string.Format("PING : {0}ms GS : {1} WS : {2} Order : {3} CInfo : {4}", new object[] { this.m_fFpsSec * 1000f, this.m_dwGSTick, this.m_dwWSTick, Battle.BATTLE.m_fOrderPing, Battle.BATTLE.m_fInfoPing }); this.m_lbPing.Text = text2; } this.m_lbFPS.Text = "FPS: " + this.fps.ToString("f2"); if (this.m_UserObject != null) { this.m_lbSoldierPos.Text = this.m_UserObject.transform.position.ToString() + " _ANGLES:" + this.m_UserObject.transform.localEulerAngles.y.ToString(); } else { this.m_lbSoldierPos.Text = string.Empty; } float num = (float)NrTSingleton <NrGlobalReference> .Instance.GetDownloadInfo().m_si32TotalSizeDownloaded; num /= 1048576f; float num2 = (float)NrTSingleton <NrGlobalReference> .Instance.GetDownloadInfo().m_si32SceneSizeDownloaded; num2 /= 1048576f; this.m_lbTotal.Text = "TotalDownloadSize : " + num.ToString("N2") + "MB"; string text3 = string.Format("SceneDownloadSize : {0}MB", num2.ToString("N2")); text3 = string.Format("{0}\nAppMemory : {1}MB", text3, NrTSingleton <NrMainSystem> .Instance.CurAppMemory); this.m_lbScene.Text = text3; this.m_lbTotalTime.Text = "Total Play Time = " + PublicMethod.ConvertTime(this.TotalTime); this.m_lbRealTime.Text = "Real Play Time = " + PublicMethod.ConvertTime(this.RealTime); this.m_lbMonster.Text = "Monster : " + this.Monster.ToString(); this.m_lbNPC.Text = "NPC: " + this.NPC.ToString(); this.m_lbUser.Text = "User: "******"MaxUser : "******"CurUser: "******"Using Net Time = " + PublicMethod.ConvertTime(time) + " sec"; long num3 = SendPacket.GetInstance().GetTotalSendPacketSize(); num3 += BaseNet_Game.GetInstance().GetTotalReceivePacketSize(); this.m_lbUseNetSize.Text = "Using Net Size = " + string.Format("{0:###,###,###,##0}", num3) + " bytes"; if (Time.time >= this.sendtime) { this.sendtime += 1f; if (NrTSingleton <NkClientLogic> .Instance.IsWorldScene()) { NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1); if (@char != null) { GS_SERVER_CHARINFO_REQ gS_SERVER_CHARINFO_REQ = new GS_SERVER_CHARINFO_REQ(); gS_SERVER_CHARINFO_REQ.siCharUnique = @char.GetCharUnique(); gS_SERVER_CHARINFO_REQ.bTimeOnly = false; SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_SERVER_CHARINFO_REQ, gS_SERVER_CHARINFO_REQ); } } } }
public override void SetComponent() { this.m_btnKaKao = (base.GetControl("Button_Kakao") as Button); this.m_btnKaKao.EffectAni = false; this.m_btnKaKao.SetValueChangedDelegate(new EZValueChangedDelegate(this.Exit)); this.m_btnConvert = (base.GetControl("BT_AccountLink") as Button); this.m_btnConvert.SetValueChangedDelegate(new EZValueChangedDelegate(this.ConverPlatformID)); this.m_btnKaKao.Visible = false; this.m_btnConvert.Visible = false; for (int i = 0; i < 14; i++) { this.m_BtnGameInfo[i] = (base.GetControl(NrTSingleton <UIDataManager> .Instance.GetString("Button_MenuBTN", (i + 1).ToString("00"))) as Button); this.m_dwButtonImg[i] = (base.GetControl(NrTSingleton <UIDataManager> .Instance.GetString("DrawTexture_BTN_IMG_", (i + 1).ToString("00"))) as DrawTexture); this.m_lbMenuName[i] = (base.GetControl(NrTSingleton <UIDataManager> .Instance.GetString("Label_BTN_Label_", (i + 1).ToString("00"))) as Label); this.m_dwBGImg[i] = (base.GetControl(NrTSingleton <UIDataManager> .Instance.GetString("DrawTexture_", (i + 1).ToString("00"))) as DrawTexture); } this.ShowHideButton(); this.m_BtnGameInfo[12] = (base.GetControl("BT_GoFaceBook") as Button); this.m_BtnGameInfo[12].data = 12; this.m_BtnGameInfo[12].AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickButton)); if (TsPlatform.IsBand || NrTSingleton <ContentsLimitManager> .Instance.IsFacebookLimit()) { this.m_lbFacebook = (base.GetControl("LB_FaceBook") as Label); this.m_dwFacebook = (base.GetControl("DT_FaceBook") as DrawTexture); this.m_BtnGameInfo[12].Visible = false; this.m_lbFacebook.Visible = false; this.m_dwFacebook.Visible = false; } if (this.m_lbFacebook == null) { this.m_lbFacebook = (base.GetControl("LB_FaceBook") as Label); } if (this.m_dwFacebook == null) { this.m_dwFacebook = (base.GetControl("DT_FaceBook") as DrawTexture); } this.m_BtnGameInfo[12].Visible = true; this.m_lbFacebook.Visible = true; this.m_dwFacebook.Visible = true; this.m_BtnGameInfo[13] = (base.GetControl("BT_GoGafe") as Button); this.m_BtnGameInfo[13].data = 13; this.m_BtnGameInfo[13].AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickButton)); this.m_dtCharImg = (base.GetControl("DT_CharImg") as DrawTexture); this.m_lbCharName = (base.GetControl("LB_CharName") as Label); this.m_lbRealTime = (base.GetControl("Label_realtime01") as Label); this.m_lbRealTime.SetText(string.Empty); this.m_lbPlayTime = (base.GetControl("Label_playtime") as Label); this.m_lbPlayTime.SetText(string.Empty); this.m_taIntroMsg = (base.GetControl("TextArea_Greeting") as TextArea); this.m_taIntroMsg.maxLength = 40; this.m_taIntroMsg.controlIsEnabled = false; this.m_BtnChangeIntroMsg = (base.GetControl("BT_ChangeGreeting") as Button); this.m_BtnChangeIntroMsg.AddValueChangedDelegate(new EZValueChangedDelegate(this.ChangeIntroMsg)); this.challengeNotice = (base.GetControl("Box_Notice") as Box); this.challengeNotice.Visible = false; this.m_dtCoupon = (base.GetControl("DT_Coupon") as DrawTexture); this.m_btCoupon = (base.GetControl("BT_GoCoupon") as Button); this.m_btCoupon.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickCoupon)); this.m_bxAuction = (base.GetControl("Box_Auction") as Box); this.m_bxAuction.Hide(true); this.m_bxCustomerNotice = (base.GetControl("Box_Notice_Customer") as Box); this.m_bxCustomerNotice.Hide(true); this.m_btGoCustomer = (base.GetControl("BT_GoCustomer") as Button); this.m_btGoCustomer.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickGoCustomer)); this.m_btnSDK[1] = (base.GetControl("BT_MoreGame_Chn") as Button); this.m_btnSDK[1].Hide(true); this.m_btnSDK[0] = (base.GetControl("BT_About_Chn") as Button); this.m_btnSDK[0].Hide(true); this.m_btnSDK[2] = (base.GetControl("BT_Exit_Chn") as Button); this.m_btnSDK[2].Hide(true); if (NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1) == null) { return; } this.mapFun.Add(MainMenuDlg.TYPE.NOTICE, new FunDelegate(this.Notice)); this.mapFun.Add(MainMenuDlg.TYPE.SOLCOMBINATION, new FunDelegate(this.SolCombination)); this.mapFun.Add(MainMenuDlg.TYPE.ITEMUPGRADE, new FunDelegate(this.ItemUpgrade)); this.mapFun.Add(MainMenuDlg.TYPE.POST, new FunDelegate(this.Post)); this.mapFun.Add(MainMenuDlg.TYPE.CHANNELMOVE, new FunDelegate(this.ChannelMove)); this.mapFun.Add(MainMenuDlg.TYPE.SYSTEM, new FunDelegate(this.System)); this.mapFun.Add(MainMenuDlg.TYPE.EXIT, new FunDelegate(this.Exit)); this.mapFun.Add(MainMenuDlg.TYPE.FACEBOOK, new FunDelegate(this.GoFaceBook)); this.mapFun.Add(MainMenuDlg.TYPE.MAINCAFE, new FunDelegate(this.GoMainCafe)); this.mapFun.Add(MainMenuDlg.TYPE.CHALLENGE, new FunDelegate(this.Challenge)); this.mapFun.Add(MainMenuDlg.TYPE.ITEMSHOP, new FunDelegate(this.ItemShop)); this.mapFun.Add(MainMenuDlg.TYPE.NPCAUTOMOVE, new FunDelegate(this.NPCAutoMove)); this.mapFun.Add(MainMenuDlg.TYPE.AUCTION, new FunDelegate(this.Auction)); this.mapFun.Add(MainMenuDlg.TYPE.MINIALBUM, new FunDelegate(this.MiniAlbum)); NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1); GS_SERVER_CHARINFO_REQ gS_SERVER_CHARINFO_REQ = new GS_SERVER_CHARINFO_REQ(); gS_SERVER_CHARINFO_REQ.siCharUnique = @char.GetCharUnique(); gS_SERVER_CHARINFO_REQ.bTimeOnly = true; SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_SERVER_CHARINFO_REQ, gS_SERVER_CHARINFO_REQ); TsAudioManager.Instance.AudioContainer.RequestAudioClip("UI_SFX", "MAINMENU", "OPEN", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay)); base.SetScreenCenter(); this.CheckCouponUse(); }