protected override void _onProcess() { lgGDChat g_chatCT = ((this.session as ClientSession).g_mgr.g_gameM as muLGClient).g_chatCT; bool flag = g_chatCT == null; if (!flag) { g_chatCT.on_chat_msg(this.msgData); } }
protected override void _onProcess() { bool flag = this.msgData["res"] == 1; if (flag) { lgGDChat g_chatCT = ((this.session as ClientSession).g_mgr.g_gameM as muLGClient).g_chatCT; g_chatCT.sendMsgSuccess(); } else { LGIUIMainUI lGIUIMainUI = (this.session as ClientSession).g_mgr.g_uiM.getLGUI("LGUIMainUIImpl") as LGIUIMainUI; lGIUIMainUI.output_server_err(this.msgData["res"]); } }
public void chat_msg(uint type, string msg, uint cid = 0u, bool withtid = false, uint backshowtp = 0u) { Variant variant = new Variant(); variant["tp"] = type; variant["msg"] = msg; bool flag = cid > 0u; if (flag) { variant["cid"] = cid; } if (withtid) { } bool flag2 = backshowtp != 1u; if (flag2) { lgGDChat g_chatCT = (this.g_mgr.g_gameM as muLGClient).g_chatCT; g_chatCT.push(variant); } base.sendRPC(160u, variant); }