static int SetAlpha(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); MFAModelRender obj = (MFAModelRender)ToLua.CheckObject(L, 1, typeof(MFAModelRender)); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.SetAlpha(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetMat(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); MFAModelRender obj = (MFAModelRender)ToLua.CheckObject(L, 1, typeof(MFAModelRender)); UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Material)); obj.SetMat(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetDir(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); MFAModelRender obj = (MFAModelRender)ToLua.CheckObject(L, 1, typeof(MFAModelRender)); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.SetDir(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetLodMesh(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); MFAModelRender obj = (MFAModelRender)ToLua.CheckObject(L, 1, typeof(MFAModelRender)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); string arg1 = ToLua.CheckString(L, 3); obj.SetLodMesh(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetLodMesh(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); MFAModelRender obj = (MFAModelRender)ToLua.CheckObject(L, 1, typeof(MFAModelRender)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); string o = obj.GetLodMesh(arg0); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_ObjId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); MFAModelRender obj = (MFAModelRender)o; ObjectID arg0 = (ObjectID)ToLua.CheckObject(L, 2, typeof(ObjectID)); obj.ObjId = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index ObjId on a nil value" : e.Message)); } }
static int set_Cluster(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); MFAModelRender obj = (MFAModelRender)o; ClusterData arg0 = (ClusterData)ToLua.CheckUnityObject(L, 2, typeof(ClusterData)); obj.Cluster = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Cluster on a nil value" : e.Message)); } }
static int set_cardID(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); MFAModelRender obj = (MFAModelRender)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.cardID = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index cardID on a nil value" : e.Message)); } }
static int set_EnableLodTexture(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); MFAModelRender obj = (MFAModelRender)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.EnableLodTexture = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index EnableLodTexture on a nil value" : e.Message)); } }
static int set_flagColor(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); MFAModelRender obj = (MFAModelRender)o; UnityEngine.Color arg0 = ToLua.ToColor(L, 2); obj.flagColor = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index flagColor on a nil value" : e.Message)); } }
static int set_m_qkcamera(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); MFAModelRender obj = (MFAModelRender)o; UnityEngine.Camera arg0 = (UnityEngine.Camera)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Camera)); obj.m_qkcamera = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_qkcamera on a nil value" : e.Message)); } }
static int get_TexturePackName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); MFAModelRender obj = (MFAModelRender)o; string ret = obj.TexturePackName; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index TexturePackName on a nil value" : e.Message)); } }
static int get_ObjId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); MFAModelRender obj = (MFAModelRender)o; ObjectID ret = obj.ObjId; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index ObjId on a nil value" : e.Message)); } }
static int get_Cluster(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); MFAModelRender obj = (MFAModelRender)o; ClusterData ret = obj.Cluster; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Cluster on a nil value" : e.Message)); } }
static int get_EnableLodTexture(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); MFAModelRender obj = (MFAModelRender)o; bool ret = obj.EnableLodTexture; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index EnableLodTexture on a nil value" : e.Message)); } }
static int get_speedScale(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); MFAModelRender obj = (MFAModelRender)o; float ret = obj.speedScale; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index speedScale on a nil value" : e.Message)); } }
static int get_m_qkcamera(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); MFAModelRender obj = (MFAModelRender)o; UnityEngine.Camera ret = obj.m_qkcamera; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_qkcamera on a nil value" : e.Message)); } }
static int get_LodCount(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); MFAModelRender obj = (MFAModelRender)o; int ret = obj.LodCount; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index LodCount on a nil value" : e.Message)); } }
static int set_TexturePackName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); MFAModelRender obj = (MFAModelRender)o; string arg0 = ToLua.CheckString(L, 2); obj.TexturePackName = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index TexturePackName on a nil value" : e.Message)); } }