static int Polling(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); NetworkPeerBase obj = (NetworkPeerBase)ToLua.CheckObject(L, 1, typeof(NetworkPeerBase)); obj.Polling(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Connect(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); NetworkPeerBase obj = (NetworkPeerBase)ToLua.CheckObject(L, 1, typeof(NetworkPeerBase)); string arg0 = ToLua.CheckString(L, 2); obj.Connect(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int PostStream(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); NetworkPeerBase obj = (NetworkPeerBase)ToLua.CheckObject(L, 1, typeof(NetworkPeerBase)); uint arg0 = (uint)LuaDLL.luaL_checknumber(L, 2); System.IO.MemoryStream arg1 = (System.IO.MemoryStream)ToLua.CheckObject(L, 3, typeof(System.IO.MemoryStream)); obj.PostStream(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_EmulateDelayMS(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); NetworkPeerBase obj = (NetworkPeerBase)o; uint arg0 = (uint)LuaDLL.luaL_checknumber(L, 2); obj.EmulateDelayMS = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index EmulateDelayMS on a nil value" : e.Message)); } }
static int set_Name(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); NetworkPeerBase obj = (NetworkPeerBase)o; string arg0 = ToLua.CheckString(L, 2); obj.Name = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Name on a nil value" : e.Message)); } }
static int set_DebugMessage(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); NetworkPeerBase obj = (NetworkPeerBase)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.DebugMessage = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index DebugMessage on a nil value" : e.Message)); } }
static int get_Valid(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); NetworkPeerBase obj = (NetworkPeerBase)o; bool ret = obj.Valid; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Valid on a nil value" : e.Message)); } }
static int get_EmulateDelayMS(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); NetworkPeerBase obj = (NetworkPeerBase)o; uint ret = obj.EmulateDelayMS; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index EmulateDelayMS on a nil value" : e.Message)); } }
static int get_Name(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); NetworkPeerBase obj = (NetworkPeerBase)o; string ret = obj.Name; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Name on a nil value" : e.Message)); } }