371 lines
8.5 KiB
C#
371 lines
8.5 KiB
C#
|
//this source code was auto-generated by tolua#, do not modify it
|
|||
|
using System;
|
|||
|
using LuaInterface;
|
|||
|
|
|||
|
public class UnityEngine_ProjectorWrap
|
|||
|
{
|
|||
|
public static void Register(LuaState L)
|
|||
|
{
|
|||
|
L.BeginClass(typeof(UnityEngine.Projector), typeof(UnityEngine.Behaviour));
|
|||
|
L.RegFunction("New", _CreateUnityEngine_Projector);
|
|||
|
L.RegFunction("__eq", op_Equality);
|
|||
|
L.RegFunction("__tostring", ToLua.op_ToString);
|
|||
|
L.RegVar("nearClipPlane", get_nearClipPlane, set_nearClipPlane);
|
|||
|
L.RegVar("farClipPlane", get_farClipPlane, set_farClipPlane);
|
|||
|
L.RegVar("fieldOfView", get_fieldOfView, set_fieldOfView);
|
|||
|
L.RegVar("aspectRatio", get_aspectRatio, set_aspectRatio);
|
|||
|
L.RegVar("orthographic", get_orthographic, set_orthographic);
|
|||
|
L.RegVar("orthographicSize", get_orthographicSize, set_orthographicSize);
|
|||
|
L.RegVar("ignoreLayers", get_ignoreLayers, set_ignoreLayers);
|
|||
|
L.RegVar("material", get_material, set_material);
|
|||
|
L.EndClass();
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _CreateUnityEngine_Projector(IntPtr L)
|
|||
|
{
|
|||
|
try
|
|||
|
{
|
|||
|
int count = LuaDLL.lua_gettop(L);
|
|||
|
|
|||
|
if (count == 0)
|
|||
|
{
|
|||
|
UnityEngine.Projector obj = new UnityEngine.Projector();
|
|||
|
ToLua.PushSealed(L, obj);
|
|||
|
return 1;
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.Projector.New");
|
|||
|
}
|
|||
|
}
|
|||
|
catch (Exception e)
|
|||
|
{
|
|||
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int op_Equality(IntPtr L)
|
|||
|
{
|
|||
|
try
|
|||
|
{
|
|||
|
ToLua.CheckArgsCount(L, 2);
|
|||
|
UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
|
|||
|
UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
|
|||
|
bool o = arg0 == arg1;
|
|||
|
LuaDLL.lua_pushboolean(L, o);
|
|||
|
return 1;
|
|||
|
}
|
|||
|
catch (Exception e)
|
|||
|
{
|
|||
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int get_nearClipPlane(IntPtr L)
|
|||
|
{
|
|||
|
object o = null;
|
|||
|
|
|||
|
try
|
|||
|
{
|
|||
|
o = ToLua.ToObject(L, 1);
|
|||
|
UnityEngine.Projector obj = (UnityEngine.Projector)o;
|
|||
|
float ret = obj.nearClipPlane;
|
|||
|
LuaDLL.lua_pushnumber(L, ret);
|
|||
|
return 1;
|
|||
|
}
|
|||
|
catch(Exception e)
|
|||
|
{
|
|||
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index nearClipPlane on a nil value");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int get_farClipPlane(IntPtr L)
|
|||
|
{
|
|||
|
object o = null;
|
|||
|
|
|||
|
try
|
|||
|
{
|
|||
|
o = ToLua.ToObject(L, 1);
|
|||
|
UnityEngine.Projector obj = (UnityEngine.Projector)o;
|
|||
|
float ret = obj.farClipPlane;
|
|||
|
LuaDLL.lua_pushnumber(L, ret);
|
|||
|
return 1;
|
|||
|
}
|
|||
|
catch(Exception e)
|
|||
|
{
|
|||
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index farClipPlane on a nil value");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int get_fieldOfView(IntPtr L)
|
|||
|
{
|
|||
|
object o = null;
|
|||
|
|
|||
|
try
|
|||
|
{
|
|||
|
o = ToLua.ToObject(L, 1);
|
|||
|
UnityEngine.Projector obj = (UnityEngine.Projector)o;
|
|||
|
float ret = obj.fieldOfView;
|
|||
|
LuaDLL.lua_pushnumber(L, ret);
|
|||
|
return 1;
|
|||
|
}
|
|||
|
catch(Exception e)
|
|||
|
{
|
|||
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index fieldOfView on a nil value");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int get_aspectRatio(IntPtr L)
|
|||
|
{
|
|||
|
object o = null;
|
|||
|
|
|||
|
try
|
|||
|
{
|
|||
|
o = ToLua.ToObject(L, 1);
|
|||
|
UnityEngine.Projector obj = (UnityEngine.Projector)o;
|
|||
|
float ret = obj.aspectRatio;
|
|||
|
LuaDLL.lua_pushnumber(L, ret);
|
|||
|
return 1;
|
|||
|
}
|
|||
|
catch(Exception e)
|
|||
|
{
|
|||
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index aspectRatio on a nil value");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int get_orthographic(IntPtr L)
|
|||
|
{
|
|||
|
object o = null;
|
|||
|
|
|||
|
try
|
|||
|
{
|
|||
|
o = ToLua.ToObject(L, 1);
|
|||
|
UnityEngine.Projector obj = (UnityEngine.Projector)o;
|
|||
|
bool ret = obj.orthographic;
|
|||
|
LuaDLL.lua_pushboolean(L, ret);
|
|||
|
return 1;
|
|||
|
}
|
|||
|
catch(Exception e)
|
|||
|
{
|
|||
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index orthographic on a nil value");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int get_orthographicSize(IntPtr L)
|
|||
|
{
|
|||
|
object o = null;
|
|||
|
|
|||
|
try
|
|||
|
{
|
|||
|
o = ToLua.ToObject(L, 1);
|
|||
|
UnityEngine.Projector obj = (UnityEngine.Projector)o;
|
|||
|
float ret = obj.orthographicSize;
|
|||
|
LuaDLL.lua_pushnumber(L, ret);
|
|||
|
return 1;
|
|||
|
}
|
|||
|
catch(Exception e)
|
|||
|
{
|
|||
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index orthographicSize on a nil value");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int get_ignoreLayers(IntPtr L)
|
|||
|
{
|
|||
|
object o = null;
|
|||
|
|
|||
|
try
|
|||
|
{
|
|||
|
o = ToLua.ToObject(L, 1);
|
|||
|
UnityEngine.Projector obj = (UnityEngine.Projector)o;
|
|||
|
int ret = obj.ignoreLayers;
|
|||
|
LuaDLL.lua_pushinteger(L, ret);
|
|||
|
return 1;
|
|||
|
}
|
|||
|
catch(Exception e)
|
|||
|
{
|
|||
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index ignoreLayers on a nil value");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int get_material(IntPtr L)
|
|||
|
{
|
|||
|
object o = null;
|
|||
|
|
|||
|
try
|
|||
|
{
|
|||
|
o = ToLua.ToObject(L, 1);
|
|||
|
UnityEngine.Projector obj = (UnityEngine.Projector)o;
|
|||
|
UnityEngine.Material ret = obj.material;
|
|||
|
ToLua.Push(L, ret);
|
|||
|
return 1;
|
|||
|
}
|
|||
|
catch(Exception e)
|
|||
|
{
|
|||
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index material on a nil value");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int set_nearClipPlane(IntPtr L)
|
|||
|
{
|
|||
|
object o = null;
|
|||
|
|
|||
|
try
|
|||
|
{
|
|||
|
o = ToLua.ToObject(L, 1);
|
|||
|
UnityEngine.Projector obj = (UnityEngine.Projector)o;
|
|||
|
float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
|
|||
|
obj.nearClipPlane = arg0;
|
|||
|
return 0;
|
|||
|
}
|
|||
|
catch(Exception e)
|
|||
|
{
|
|||
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index nearClipPlane on a nil value");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int set_farClipPlane(IntPtr L)
|
|||
|
{
|
|||
|
object o = null;
|
|||
|
|
|||
|
try
|
|||
|
{
|
|||
|
o = ToLua.ToObject(L, 1);
|
|||
|
UnityEngine.Projector obj = (UnityEngine.Projector)o;
|
|||
|
float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
|
|||
|
obj.farClipPlane = arg0;
|
|||
|
return 0;
|
|||
|
}
|
|||
|
catch(Exception e)
|
|||
|
{
|
|||
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index farClipPlane on a nil value");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int set_fieldOfView(IntPtr L)
|
|||
|
{
|
|||
|
object o = null;
|
|||
|
|
|||
|
try
|
|||
|
{
|
|||
|
o = ToLua.ToObject(L, 1);
|
|||
|
UnityEngine.Projector obj = (UnityEngine.Projector)o;
|
|||
|
float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
|
|||
|
obj.fieldOfView = arg0;
|
|||
|
return 0;
|
|||
|
}
|
|||
|
catch(Exception e)
|
|||
|
{
|
|||
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index fieldOfView on a nil value");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int set_aspectRatio(IntPtr L)
|
|||
|
{
|
|||
|
object o = null;
|
|||
|
|
|||
|
try
|
|||
|
{
|
|||
|
o = ToLua.ToObject(L, 1);
|
|||
|
UnityEngine.Projector obj = (UnityEngine.Projector)o;
|
|||
|
float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
|
|||
|
obj.aspectRatio = arg0;
|
|||
|
return 0;
|
|||
|
}
|
|||
|
catch(Exception e)
|
|||
|
{
|
|||
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index aspectRatio on a nil value");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int set_orthographic(IntPtr L)
|
|||
|
{
|
|||
|
object o = null;
|
|||
|
|
|||
|
try
|
|||
|
{
|
|||
|
o = ToLua.ToObject(L, 1);
|
|||
|
UnityEngine.Projector obj = (UnityEngine.Projector)o;
|
|||
|
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
|
|||
|
obj.orthographic = arg0;
|
|||
|
return 0;
|
|||
|
}
|
|||
|
catch(Exception e)
|
|||
|
{
|
|||
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index orthographic on a nil value");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int set_orthographicSize(IntPtr L)
|
|||
|
{
|
|||
|
object o = null;
|
|||
|
|
|||
|
try
|
|||
|
{
|
|||
|
o = ToLua.ToObject(L, 1);
|
|||
|
UnityEngine.Projector obj = (UnityEngine.Projector)o;
|
|||
|
float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
|
|||
|
obj.orthographicSize = arg0;
|
|||
|
return 0;
|
|||
|
}
|
|||
|
catch(Exception e)
|
|||
|
{
|
|||
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index orthographicSize on a nil value");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int set_ignoreLayers(IntPtr L)
|
|||
|
{
|
|||
|
object o = null;
|
|||
|
|
|||
|
try
|
|||
|
{
|
|||
|
o = ToLua.ToObject(L, 1);
|
|||
|
UnityEngine.Projector obj = (UnityEngine.Projector)o;
|
|||
|
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
|||
|
obj.ignoreLayers = arg0;
|
|||
|
return 0;
|
|||
|
}
|
|||
|
catch(Exception e)
|
|||
|
{
|
|||
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index ignoreLayers on a nil value");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int set_material(IntPtr L)
|
|||
|
{
|
|||
|
object o = null;
|
|||
|
|
|||
|
try
|
|||
|
{
|
|||
|
o = ToLua.ToObject(L, 1);
|
|||
|
UnityEngine.Projector obj = (UnityEngine.Projector)o;
|
|||
|
UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckObject<UnityEngine.Material>(L, 2);
|
|||
|
obj.material = arg0;
|
|||
|
return 0;
|
|||
|
}
|
|||
|
catch(Exception e)
|
|||
|
{
|
|||
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index material on a nil value");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|