public bool Call(TGNetService.NetEvent param0) { func.BeginPCall(); func.PushObject(param0); func.PCall(); bool ret = func.CheckBoolean(); func.EndPCall(); return(ret); }
static int get_Data(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TGNetService.NetEvent obj = (TGNetService.NetEvent)o; byte[] ret = obj.Data; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Data on a nil value" : e.Message)); } }
static int get_Content(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TGNetService.NetEvent obj = (TGNetService.NetEvent)o; Newtonsoft.Json.Linq.JObject ret = obj.Content; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Content on a nil value" : e.Message)); } }
static int get_Type(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TGNetService.NetEvent obj = (TGNetService.NetEvent)o; string ret = obj.Type; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Type on a nil value" : e.Message)); } }
static int set_Param(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TGNetService.NetEvent obj = (TGNetService.NetEvent)o; object arg0 = ToLua.ToVarObject(L, 2); obj.Param = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Param on a nil value" : e.Message)); } }
static int set_Data(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TGNetService.NetEvent obj = (TGNetService.NetEvent)o; byte[] arg0 = ToLua.CheckByteBuffer(L, 2); obj.Data = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Data on a nil value" : e.Message)); } }
static int set_Content(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TGNetService.NetEvent obj = (TGNetService.NetEvent)o; Newtonsoft.Json.Linq.JObject arg0 = (Newtonsoft.Json.Linq.JObject)ToLua.CheckObject(L, 2, typeof(Newtonsoft.Json.Linq.JObject)); obj.Content = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Content on a nil value" : e.Message)); } }
static int set_Type(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TGNetService.NetEvent obj = (TGNetService.NetEvent)o; string arg0 = ToLua.CheckString(L, 2); obj.Type = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Type on a nil value" : e.Message)); } }
static int _CreateTGNetService_NetEvent(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { TGNetService.NetEvent obj = new TGNetService.NetEvent(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: TGNetService.NetEvent.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }