static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); BestHTTP.WebSocket.WebSocketStates o = (BestHTTP.WebSocket.WebSocketStates)arg0; ToLua.Push(L, o); return(1); }
static int get_State(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BestHTTP.WebSocket.WebSocket obj = (BestHTTP.WebSocket.WebSocket)o; BestHTTP.WebSocket.WebSocketStates ret = obj.State; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index State on a nil value")); } }
static void Push(IntPtr L, BestHTTP.WebSocket.WebSocketStates arg) { ToLua.Push(L, arg); }