源战役客户端
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.
 
 
 
 
 

943 lines
34 KiB

//this source code was auto-generated by tolua#, do not modify it
using System;
using LuaInterface;
public class UnityEngine_MaterialPropertyBlockWrap
{
public static void Register(LuaState L)
{
L.BeginClass(typeof(UnityEngine.MaterialPropertyBlock), typeof(System.Object));
L.RegFunction("Clear", Clear);
L.RegFunction("SetFloat", SetFloat);
L.RegFunction("SetInt", SetInt);
L.RegFunction("SetVector", SetVector);
L.RegFunction("SetColor", SetColor);
L.RegFunction("SetMatrix", SetMatrix);
L.RegFunction("SetBuffer", SetBuffer);
L.RegFunction("SetTexture", SetTexture);
L.RegFunction("SetFloatArray", SetFloatArray);
L.RegFunction("SetVectorArray", SetVectorArray);
L.RegFunction("SetMatrixArray", SetMatrixArray);
L.RegFunction("GetFloat", GetFloat);
L.RegFunction("GetInt", GetInt);
L.RegFunction("GetVector", GetVector);
L.RegFunction("GetColor", GetColor);
L.RegFunction("GetMatrix", GetMatrix);
L.RegFunction("GetTexture", GetTexture);
L.RegFunction("GetFloatArray", GetFloatArray);
L.RegFunction("GetVectorArray", GetVectorArray);
L.RegFunction("GetMatrixArray", GetMatrixArray);
L.RegFunction("CopySHCoefficientArraysFrom", CopySHCoefficientArraysFrom);
L.RegFunction("CopyProbeOcclusionArrayFrom", CopyProbeOcclusionArrayFrom);
L.RegFunction("New", _CreateUnityEngine_MaterialPropertyBlock);
L.RegFunction("__tostring", ToLua.op_ToString);
L.RegVar("isEmpty", get_isEmpty, null);
L.EndClass();
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _CreateUnityEngine_MaterialPropertyBlock(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 0)
{
UnityEngine.MaterialPropertyBlock obj = new UnityEngine.MaterialPropertyBlock();
ToLua.PushObject(L, obj);
return 1;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.MaterialPropertyBlock.New");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int Clear(IntPtr L)
{
try
{
ToLua.CheckArgsCount(L, 1);
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.CheckObject(L, 1, typeof(UnityEngine.MaterialPropertyBlock));
obj.Clear();
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int SetFloat(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(float)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
float arg1 = (float)LuaDLL.lua_tonumber(L, 3);
obj.SetFloat(arg0, arg1);
return 0;
}
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(float)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
float arg1 = (float)LuaDLL.lua_tonumber(L, 3);
obj.SetFloat(arg0, arg1);
return 0;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.SetFloat");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int SetInt(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(int)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
obj.SetInt(arg0, arg1);
return 0;
}
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(int)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
obj.SetInt(arg0, arg1);
return 0;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.SetInt");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int SetVector(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(UnityEngine.Vector4)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
UnityEngine.Vector4 arg1 = ToLua.ToVector4(L, 3);
obj.SetVector(arg0, arg1);
return 0;
}
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(UnityEngine.Vector4)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
UnityEngine.Vector4 arg1 = ToLua.ToVector4(L, 3);
obj.SetVector(arg0, arg1);
return 0;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.SetVector");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int SetColor(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(UnityEngine.Color)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
UnityEngine.Color arg1 = ToLua.ToColor(L, 3);
obj.SetColor(arg0, arg1);
return 0;
}
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(UnityEngine.Color)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
UnityEngine.Color arg1 = ToLua.ToColor(L, 3);
obj.SetColor(arg0, arg1);
return 0;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.SetColor");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int SetMatrix(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(UnityEngine.Matrix4x4)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
UnityEngine.Matrix4x4 arg1 = (UnityEngine.Matrix4x4)ToLua.ToObject(L, 3);
obj.SetMatrix(arg0, arg1);
return 0;
}
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(UnityEngine.Matrix4x4)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
UnityEngine.Matrix4x4 arg1 = (UnityEngine.Matrix4x4)ToLua.ToObject(L, 3);
obj.SetMatrix(arg0, arg1);
return 0;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.SetMatrix");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int SetBuffer(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(UnityEngine.ComputeBuffer)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
UnityEngine.ComputeBuffer arg1 = (UnityEngine.ComputeBuffer)ToLua.ToObject(L, 3);
obj.SetBuffer(arg0, arg1);
return 0;
}
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(UnityEngine.ComputeBuffer)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
UnityEngine.ComputeBuffer arg1 = (UnityEngine.ComputeBuffer)ToLua.ToObject(L, 3);
obj.SetBuffer(arg0, arg1);
return 0;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.SetBuffer");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int SetTexture(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(UnityEngine.Texture)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
UnityEngine.Texture arg1 = (UnityEngine.Texture)ToLua.ToObject(L, 3);
obj.SetTexture(arg0, arg1);
return 0;
}
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(UnityEngine.Texture)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
UnityEngine.Texture arg1 = (UnityEngine.Texture)ToLua.ToObject(L, 3);
obj.SetTexture(arg0, arg1);
return 0;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.SetTexture");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int SetFloatArray(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(System.Collections.Generic.List<float>)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
System.Collections.Generic.List<float> arg1 = (System.Collections.Generic.List<float>)ToLua.ToObject(L, 3);
obj.SetFloatArray(arg0, arg1);
return 0;
}
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(System.Collections.Generic.List<float>)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
System.Collections.Generic.List<float> arg1 = (System.Collections.Generic.List<float>)ToLua.ToObject(L, 3);
obj.SetFloatArray(arg0, arg1);
return 0;
}
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(float[])))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
float[] arg1 = ToLua.CheckNumberArray<float>(L, 3);
obj.SetFloatArray(arg0, arg1);
return 0;
}
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(float[])))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
float[] arg1 = ToLua.CheckNumberArray<float>(L, 3);
obj.SetFloatArray(arg0, arg1);
return 0;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.SetFloatArray");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int SetVectorArray(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(System.Collections.Generic.List<UnityEngine.Vector4>)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
System.Collections.Generic.List<UnityEngine.Vector4> arg1 = (System.Collections.Generic.List<UnityEngine.Vector4>)ToLua.ToObject(L, 3);
obj.SetVectorArray(arg0, arg1);
return 0;
}
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(System.Collections.Generic.List<UnityEngine.Vector4>)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
System.Collections.Generic.List<UnityEngine.Vector4> arg1 = (System.Collections.Generic.List<UnityEngine.Vector4>)ToLua.ToObject(L, 3);
obj.SetVectorArray(arg0, arg1);
return 0;
}
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(UnityEngine.Vector4[])))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
UnityEngine.Vector4[] arg1 = ToLua.CheckObjectArray<UnityEngine.Vector4>(L, 3);
obj.SetVectorArray(arg0, arg1);
return 0;
}
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(UnityEngine.Vector4[])))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
UnityEngine.Vector4[] arg1 = ToLua.CheckObjectArray<UnityEngine.Vector4>(L, 3);
obj.SetVectorArray(arg0, arg1);
return 0;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.SetVectorArray");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int SetMatrixArray(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(System.Collections.Generic.List<UnityEngine.Matrix4x4>)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
System.Collections.Generic.List<UnityEngine.Matrix4x4> arg1 = (System.Collections.Generic.List<UnityEngine.Matrix4x4>)ToLua.ToObject(L, 3);
obj.SetMatrixArray(arg0, arg1);
return 0;
}
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(System.Collections.Generic.List<UnityEngine.Matrix4x4>)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
System.Collections.Generic.List<UnityEngine.Matrix4x4> arg1 = (System.Collections.Generic.List<UnityEngine.Matrix4x4>)ToLua.ToObject(L, 3);
obj.SetMatrixArray(arg0, arg1);
return 0;
}
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(UnityEngine.Matrix4x4[])))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
UnityEngine.Matrix4x4[] arg1 = ToLua.CheckObjectArray<UnityEngine.Matrix4x4>(L, 3);
obj.SetMatrixArray(arg0, arg1);
return 0;
}
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(UnityEngine.Matrix4x4[])))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
UnityEngine.Matrix4x4[] arg1 = ToLua.CheckObjectArray<UnityEngine.Matrix4x4>(L, 3);
obj.SetMatrixArray(arg0, arg1);
return 0;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.SetMatrixArray");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int GetFloat(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
float o = obj.GetFloat(arg0);
LuaDLL.lua_pushnumber(L, o);
return 1;
}
else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
float o = obj.GetFloat(arg0);
LuaDLL.lua_pushnumber(L, o);
return 1;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.GetFloat");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int GetInt(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
int o = obj.GetInt(arg0);
LuaDLL.lua_pushinteger(L, o);
return 1;
}
else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
int o = obj.GetInt(arg0);
LuaDLL.lua_pushinteger(L, o);
return 1;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.GetInt");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int GetVector(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
UnityEngine.Vector4 o = obj.GetVector(arg0);
ToLua.Push(L, o);
return 1;
}
else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
UnityEngine.Vector4 o = obj.GetVector(arg0);
ToLua.Push(L, o);
return 1;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.GetVector");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int GetColor(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
UnityEngine.Color o = obj.GetColor(arg0);
ToLua.Push(L, o);
return 1;
}
else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
UnityEngine.Color o = obj.GetColor(arg0);
ToLua.Push(L, o);
return 1;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.GetColor");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int GetMatrix(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
UnityEngine.Matrix4x4 o = obj.GetMatrix(arg0);
ToLua.PushValue(L, o);
return 1;
}
else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
UnityEngine.Matrix4x4 o = obj.GetMatrix(arg0);
ToLua.PushValue(L, o);
return 1;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.GetMatrix");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int GetTexture(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
UnityEngine.Texture o = obj.GetTexture(arg0);
ToLua.Push(L, o);
return 1;
}
else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
UnityEngine.Texture o = obj.GetTexture(arg0);
ToLua.Push(L, o);
return 1;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.GetTexture");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int GetFloatArray(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
float[] o = obj.GetFloatArray(arg0);
ToLua.Push(L, o);
return 1;
}
else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
float[] o = obj.GetFloatArray(arg0);
ToLua.Push(L, o);
return 1;
}
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(System.Collections.Generic.List<float>)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
System.Collections.Generic.List<float> arg1 = (System.Collections.Generic.List<float>)ToLua.ToObject(L, 3);
obj.GetFloatArray(arg0, arg1);
return 0;
}
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(System.Collections.Generic.List<float>)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
System.Collections.Generic.List<float> arg1 = (System.Collections.Generic.List<float>)ToLua.ToObject(L, 3);
obj.GetFloatArray(arg0, arg1);
return 0;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.GetFloatArray");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int GetVectorArray(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
UnityEngine.Vector4[] o = obj.GetVectorArray(arg0);
ToLua.Push(L, o);
return 1;
}
else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
UnityEngine.Vector4[] o = obj.GetVectorArray(arg0);
ToLua.Push(L, o);
return 1;
}
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(System.Collections.Generic.List<UnityEngine.Vector4>)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
System.Collections.Generic.List<UnityEngine.Vector4> arg1 = (System.Collections.Generic.List<UnityEngine.Vector4>)ToLua.ToObject(L, 3);
obj.GetVectorArray(arg0, arg1);
return 0;
}
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(System.Collections.Generic.List<UnityEngine.Vector4>)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
System.Collections.Generic.List<UnityEngine.Vector4> arg1 = (System.Collections.Generic.List<UnityEngine.Vector4>)ToLua.ToObject(L, 3);
obj.GetVectorArray(arg0, arg1);
return 0;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.GetVectorArray");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int GetMatrixArray(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
UnityEngine.Matrix4x4[] o = obj.GetMatrixArray(arg0);
ToLua.Push(L, o);
return 1;
}
else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
UnityEngine.Matrix4x4[] o = obj.GetMatrixArray(arg0);
ToLua.Push(L, o);
return 1;
}
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(System.Collections.Generic.List<UnityEngine.Matrix4x4>)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
System.Collections.Generic.List<UnityEngine.Matrix4x4> arg1 = (System.Collections.Generic.List<UnityEngine.Matrix4x4>)ToLua.ToObject(L, 3);
obj.GetMatrixArray(arg0, arg1);
return 0;
}
else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(System.Collections.Generic.List<UnityEngine.Matrix4x4>)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
System.Collections.Generic.List<UnityEngine.Matrix4x4> arg1 = (System.Collections.Generic.List<UnityEngine.Matrix4x4>)ToLua.ToObject(L, 3);
obj.GetMatrixArray(arg0, arg1);
return 0;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.GetMatrixArray");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int CopySHCoefficientArraysFrom(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(System.Collections.Generic.List<UnityEngine.Rendering.SphericalHarmonicsL2>)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
System.Collections.Generic.List<UnityEngine.Rendering.SphericalHarmonicsL2> arg0 = (System.Collections.Generic.List<UnityEngine.Rendering.SphericalHarmonicsL2>)ToLua.ToObject(L, 2);
obj.CopySHCoefficientArraysFrom(arg0);
return 0;
}
else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(UnityEngine.Rendering.SphericalHarmonicsL2[])))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
UnityEngine.Rendering.SphericalHarmonicsL2[] arg0 = ToLua.CheckObjectArray<UnityEngine.Rendering.SphericalHarmonicsL2>(L, 2);
obj.CopySHCoefficientArraysFrom(arg0);
return 0;
}
else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(System.Collections.Generic.List<UnityEngine.Rendering.SphericalHarmonicsL2>), typeof(int), typeof(int), typeof(int)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
System.Collections.Generic.List<UnityEngine.Rendering.SphericalHarmonicsL2> arg0 = (System.Collections.Generic.List<UnityEngine.Rendering.SphericalHarmonicsL2>)ToLua.ToObject(L, 2);
int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
int arg2 = (int)LuaDLL.lua_tonumber(L, 4);
int arg3 = (int)LuaDLL.lua_tonumber(L, 5);
obj.CopySHCoefficientArraysFrom(arg0, arg1, arg2, arg3);
return 0;
}
else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(UnityEngine.Rendering.SphericalHarmonicsL2[]), typeof(int), typeof(int), typeof(int)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
UnityEngine.Rendering.SphericalHarmonicsL2[] arg0 = ToLua.CheckObjectArray<UnityEngine.Rendering.SphericalHarmonicsL2>(L, 2);
int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
int arg2 = (int)LuaDLL.lua_tonumber(L, 4);
int arg3 = (int)LuaDLL.lua_tonumber(L, 5);
obj.CopySHCoefficientArraysFrom(arg0, arg1, arg2, arg3);
return 0;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.CopySHCoefficientArraysFrom");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int CopyProbeOcclusionArrayFrom(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(System.Collections.Generic.List<UnityEngine.Vector4>)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
System.Collections.Generic.List<UnityEngine.Vector4> arg0 = (System.Collections.Generic.List<UnityEngine.Vector4>)ToLua.ToObject(L, 2);
obj.CopyProbeOcclusionArrayFrom(arg0);
return 0;
}
else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(UnityEngine.Vector4[])))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
UnityEngine.Vector4[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector4>(L, 2);
obj.CopyProbeOcclusionArrayFrom(arg0);
return 0;
}
else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(System.Collections.Generic.List<UnityEngine.Vector4>), typeof(int), typeof(int), typeof(int)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
System.Collections.Generic.List<UnityEngine.Vector4> arg0 = (System.Collections.Generic.List<UnityEngine.Vector4>)ToLua.ToObject(L, 2);
int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
int arg2 = (int)LuaDLL.lua_tonumber(L, 4);
int arg3 = (int)LuaDLL.lua_tonumber(L, 5);
obj.CopyProbeOcclusionArrayFrom(arg0, arg1, arg2, arg3);
return 0;
}
else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(UnityEngine.Vector4[]), typeof(int), typeof(int), typeof(int)))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
UnityEngine.Vector4[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector4>(L, 2);
int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
int arg2 = (int)LuaDLL.lua_tonumber(L, 4);
int arg3 = (int)LuaDLL.lua_tonumber(L, 5);
obj.CopyProbeOcclusionArrayFrom(arg0, arg1, arg2, arg3);
return 0;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.CopyProbeOcclusionArrayFrom");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_isEmpty(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)o;
bool ret = obj.isEmpty;
LuaDLL.lua_pushboolean(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isEmpty on a nil value" : e.Message);
}
}
}