public override void ReadFrom(object obj) { base.ReadFrom(obj); if (obj == null) { return; } UnityEngine.LODGroup o = (UnityEngine.LODGroup)obj; localReferencePoint = o.localReferencePoint; size = o.size; fadeMode = (uint)o.fadeMode; animateCrossFading = o.animateCrossFading; enabled = o.enabled; }
public override object WriteTo(object obj, System.Collections.Generic.Dictionary <long, UnityEngine.Object> objects) { obj = base.WriteTo(obj, objects); if (obj == null) { return(null); } UnityEngine.LODGroup o = (UnityEngine.LODGroup)obj; o.localReferencePoint = localReferencePoint; o.size = size; o.fadeMode = (UnityEngine.LODFadeMode)fadeMode; o.animateCrossFading = animateCrossFading; o.enabled = enabled; return(o); }
static StackObject *get_enabled_9(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.LODGroup instance_of_this_method = (UnityEngine.LODGroup) typeof(UnityEngine.LODGroup).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.enabled; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return(__ret + 1); }
static StackObject *ForceLOD_14(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Int32 @index = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.LODGroup instance_of_this_method = (UnityEngine.LODGroup) typeof(UnityEngine.LODGroup).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.ForceLOD(@index); return(__ret); }
static StackObject *set_enabled_10(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Boolean @value = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.LODGroup instance_of_this_method = (UnityEngine.LODGroup) typeof(UnityEngine.LODGroup).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.enabled = value; return(__ret); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { var gen_ret = new UnityEngine.LODGroup(); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LODGroup constructor!")); }
static StackObject *SetLODs_13(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.LOD[] @lods = (UnityEngine.LOD[]) typeof(UnityEngine.LOD[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.LODGroup instance_of_this_method = (UnityEngine.LODGroup) typeof(UnityEngine.LODGroup).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.SetLODs(@lods); return(__ret); }
static StackObject *set_localReferencePoint_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.Vector3 @value = (UnityEngine.Vector3) typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.LODGroup instance_of_this_method = (UnityEngine.LODGroup) typeof(UnityEngine.LODGroup).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.localReferencePoint = value; return(__ret); }
static int _m_RecalculateBounds(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.LODGroup __cl_gen_to_be_invoked = (UnityEngine.LODGroup)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.RecalculateBounds( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetLODs(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.LODGroup __cl_gen_to_be_invoked = (UnityEngine.LODGroup)translator.FastGetCSObj(L, 1); try { { UnityEngine.LOD[] __cl_gen_ret = __cl_gen_to_be_invoked.GetLODs( ); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_ForceLOD(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.LODGroup __cl_gen_to_be_invoked = (UnityEngine.LODGroup)translator.FastGetCSObj(L, 1); try { { int index = LuaAPI.xlua_tointeger(L, 2); __cl_gen_to_be_invoked.ForceLOD(index); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_SetLODs(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.LODGroup __cl_gen_to_be_invoked = (UnityEngine.LODGroup)translator.FastGetCSObj(L, 1); try { { UnityEngine.LOD[] lods = (UnityEngine.LOD[])translator.GetObject(L, 2, typeof(UnityEngine.LOD[])); __cl_gen_to_be_invoked.SetLODs(lods); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }