源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

161 lines
3.8 KiB

//this source code was auto-generated by tolua#, do not modify it
using System;
using LuaInterface;
public class UnityEngine_ResolutionWrap
{
public static void Register(LuaState L)
{
L.BeginClass(typeof(UnityEngine.Resolution), null);
L.RegFunction("ToString", ToString);
L.RegFunction("New", _CreateUnityEngine_Resolution);
L.RegFunction("__tostring", ToLua.op_ToString);
L.RegVar("width", get_width, set_width);
L.RegVar("height", get_height, set_height);
L.RegVar("refreshRate", get_refreshRate, set_refreshRate);
L.EndClass();
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _CreateUnityEngine_Resolution(IntPtr L)
{
UnityEngine.Resolution obj = new UnityEngine.Resolution();
ToLua.PushValue(L, obj);
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int ToString(IntPtr L)
{
try
{
ToLua.CheckArgsCount(L, 1);
UnityEngine.Resolution obj = (UnityEngine.Resolution)ToLua.CheckObject(L, 1, typeof(UnityEngine.Resolution));
string o = obj.ToString();
LuaDLL.lua_pushstring(L, o);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_width(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.Resolution obj = (UnityEngine.Resolution)o;
int ret = obj.width;
LuaDLL.lua_pushinteger(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index width on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_height(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.Resolution obj = (UnityEngine.Resolution)o;
int ret = obj.height;
LuaDLL.lua_pushinteger(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index height on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_refreshRate(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.Resolution obj = (UnityEngine.Resolution)o;
int ret = obj.refreshRate;
LuaDLL.lua_pushinteger(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index refreshRate on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_width(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.Resolution obj = (UnityEngine.Resolution)o;
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
obj.width = arg0;
ToLua.SetBack(L, 1, obj);
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index width on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_height(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.Resolution obj = (UnityEngine.Resolution)o;
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
obj.height = arg0;
ToLua.SetBack(L, 1, obj);
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index height on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_refreshRate(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.Resolution obj = (UnityEngine.Resolution)o;
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
obj.refreshRate = arg0;
ToLua.SetBack(L, 1, obj);
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index refreshRate on a nil value" : e.Message);
}
}
}