static int AddLuaEventListener(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 3); INetManager obj = LuaScriptMgr.GetNetObject <INetManager>(L, 1); string arg0 = LuaScriptMgr.GetLuaString(L, 2); LuaFunction arg1 = LuaScriptMgr.GetLuaFunction(L, 3); obj.AddLuaEventListener(arg0, arg1); return(0); }