//this source code was auto-generated by tolua#, do not modify it
|
|
using System;
|
|
using LuaInterface;
|
|
|
|
public class ResolutionWrap
|
|
{
|
|
public static void Register(LuaState L)
|
|
{
|
|
L.BeginEnum(typeof(Resolution));
|
|
L.RegVar("Low", get_Low, null);
|
|
L.RegVar("High", get_High, null);
|
|
L.RegFunction("IntToEnum", IntToEnum);
|
|
L.EndEnum();
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_Low(IntPtr L)
|
|
{
|
|
ToLua.Push(L, Resolution.Low);
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_High(IntPtr L)
|
|
{
|
|
ToLua.Push(L, Resolution.High);
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int IntToEnum(IntPtr L)
|
|
{
|
|
int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
|
|
Resolution o = (Resolution)arg0;
|
|
ToLua.Push(L, o);
|
|
return 1;
|
|
}
|
|
}
|
|
|