hengyang_client/wb_unity_pro/Assets/Source/Generate/UnityEngine_MeshRendererWra...

235 lines
5.7 KiB
C#

//this source code was auto-generated by tolua#, do not modify it
using System;
using LuaInterface;
public class UnityEngine_MeshRendererWrap
{
public static void Register(LuaState L)
{
L.BeginClass(typeof(UnityEngine.MeshRenderer), typeof(UnityEngine.Renderer));
L.RegFunction("New", _CreateUnityEngine_MeshRenderer);
L.RegFunction("__eq", op_Equality);
L.RegFunction("__tostring", ToLua.op_ToString);
L.RegVar("additionalVertexStreams", get_additionalVertexStreams, set_additionalVertexStreams);
L.RegVar("subMeshStartIndex", get_subMeshStartIndex, null);
L.RegVar("scaleInLightmap", get_scaleInLightmap, set_scaleInLightmap);
L.RegVar("receiveGI", get_receiveGI, set_receiveGI);
L.RegVar("stitchLightmapSeams", get_stitchLightmapSeams, set_stitchLightmapSeams);
L.EndClass();
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _CreateUnityEngine_MeshRenderer(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 0)
{
UnityEngine.MeshRenderer obj = new UnityEngine.MeshRenderer();
ToLua.Push(L, obj);
return 1;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.MeshRenderer.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_additionalVertexStreams(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.MeshRenderer obj = (UnityEngine.MeshRenderer)o;
UnityEngine.Mesh ret = obj.additionalVertexStreams;
ToLua.PushSealed(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o, "attempt to index additionalVertexStreams on a nil value");
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_subMeshStartIndex(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.MeshRenderer obj = (UnityEngine.MeshRenderer)o;
int ret = obj.subMeshStartIndex;
LuaDLL.lua_pushinteger(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o, "attempt to index subMeshStartIndex on a nil value");
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_scaleInLightmap(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.MeshRenderer obj = (UnityEngine.MeshRenderer)o;
float ret = obj.scaleInLightmap;
LuaDLL.lua_pushnumber(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o, "attempt to index scaleInLightmap on a nil value");
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_receiveGI(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.MeshRenderer obj = (UnityEngine.MeshRenderer)o;
UnityEngine.ReceiveGI ret = obj.receiveGI;
ToLua.Push(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o, "attempt to index receiveGI on a nil value");
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_stitchLightmapSeams(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.MeshRenderer obj = (UnityEngine.MeshRenderer)o;
bool ret = obj.stitchLightmapSeams;
LuaDLL.lua_pushboolean(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o, "attempt to index stitchLightmapSeams on a nil value");
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_additionalVertexStreams(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.MeshRenderer obj = (UnityEngine.MeshRenderer)o;
UnityEngine.Mesh arg0 = (UnityEngine.Mesh)ToLua.CheckObject(L, 2, typeof(UnityEngine.Mesh));
obj.additionalVertexStreams = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o, "attempt to index additionalVertexStreams on a nil value");
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_scaleInLightmap(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.MeshRenderer obj = (UnityEngine.MeshRenderer)o;
float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
obj.scaleInLightmap = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o, "attempt to index scaleInLightmap on a nil value");
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_receiveGI(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.MeshRenderer obj = (UnityEngine.MeshRenderer)o;
UnityEngine.ReceiveGI arg0 = (UnityEngine.ReceiveGI)ToLua.CheckObject(L, 2, typeof(UnityEngine.ReceiveGI));
obj.receiveGI = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o, "attempt to index receiveGI on a nil value");
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_stitchLightmapSeams(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.MeshRenderer obj = (UnityEngine.MeshRenderer)o;
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
obj.stitchLightmapSeams = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o, "attempt to index stitchLightmapSeams on a nil value");
}
}
}