static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); LuaFramework.ChannelType o = (LuaFramework.ChannelType)arg0; ToLua.Push(L, o); return(1); }
static int set_channelType(IntPtr L) { try { LuaFramework.ChannelType arg0 = (LuaFramework.ChannelType)ToLua.CheckObject(L, 2, typeof(LuaFramework.ChannelType)); LuaFramework.AppConst.channelType = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static void Push(IntPtr L, LuaFramework.ChannelType arg) { ToLua.Push(L, arg); }