public void SendMessageEmpty <T>() { string s = typeof(T).FullName; int t; bool b = cdict.TryGetValue(s, out t); if (b) { string tname = typeof(T).Name; switch (tname[0]) { case 'C': socketManager.SendEmptyMessage(SocketId.Main, t); HDebugger.Log(HDebuggerModule.Proto, "C --> S : " + s); break; case 'R': socketManager.SendEmptyMessage(SocketId.Chat, t); break; default: break; } } }
static int SendEmptyMessage(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 3); CC.Runtime.SocketManager obj = (CC.Runtime.SocketManager)LuaScriptMgr.GetUnityObjectSelf(L, 1, "CC.Runtime.SocketManager"); CC.Runtime.SocketId arg0 = (CC.Runtime.SocketId)LuaScriptMgr.GetNetObject(L, 2, typeof(CC.Runtime.SocketId)); int arg1 = (int)LuaScriptMgr.GetNumber(L, 3); obj.SendEmptyMessage(arg0, arg1); return(0); }