using System; using System.Collections.Generic; using System.Reflection; using System.Runtime.InteropServices; using UnityFusion.CLR.TypeSystem; using UnityFusion.CLR.Method; using UnityFusion.Runtime.Enviorment; using UnityFusion.Runtime.Intepreter; using UnityFusion.Runtime.Stack; using UnityFusion.Reflection; using UnityFusion.CLR.Utils; #if DEBUG && !DISABLE_UNITYFUSION_DEBUG using AutoList = System.Collections.Generic.List; #else using AutoList = UnityFusion.Other.UncheckedList; #endif namespace UnityFusion.Runtime.Generated { unsafe class UnityEngine_LODGroup_Binding { public static void Register(UnityFusion.Runtime.Enviorment.AppDomain app) { BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly; MethodBase method; Type[] args; Type type = typeof(UnityEngine.LODGroup); args = new Type[]{}; method = type.GetMethod("get_localReferencePoint", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_localReferencePoint_0); args = new Type[]{typeof(UnityEngine.Vector3)}; method = type.GetMethod("set_localReferencePoint", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_localReferencePoint_1); args = new Type[]{}; method = type.GetMethod("get_size", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_size_2); args = new Type[]{typeof(System.Single)}; method = type.GetMethod("set_size", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_size_3); args = new Type[]{}; method = type.GetMethod("get_lodCount", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_lodCount_4); args = new Type[]{}; method = type.GetMethod("get_lastLODBillboard", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_lastLODBillboard_5); args = new Type[]{typeof(System.Boolean)}; method = type.GetMethod("set_lastLODBillboard", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_lastLODBillboard_6); args = new Type[]{}; method = type.GetMethod("get_fadeMode", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_fadeMode_7); args = new Type[]{typeof(UnityEngine.LODFadeMode)}; method = type.GetMethod("set_fadeMode", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_fadeMode_8); args = new Type[]{}; method = type.GetMethod("get_animateCrossFading", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_animateCrossFading_9); args = new Type[]{typeof(System.Boolean)}; method = type.GetMethod("set_animateCrossFading", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_animateCrossFading_10); args = new Type[]{}; method = type.GetMethod("get_enabled", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_enabled_11); args = new Type[]{typeof(System.Boolean)}; method = type.GetMethod("set_enabled", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_enabled_12); args = new Type[]{}; method = type.GetMethod("RecalculateBounds", flag, null, args, null); app.RegisterCLRMethodRedirection(method, RecalculateBounds_13); args = new Type[]{}; method = type.GetMethod("GetLODs", flag, null, args, null); app.RegisterCLRMethodRedirection(method, GetLODs_14); args = new Type[]{typeof(UnityEngine.LOD[])}; method = type.GetMethod("SetLODs", flag, null, args, null); app.RegisterCLRMethodRedirection(method, SetLODs_15); args = new Type[]{typeof(System.Int32)}; method = type.GetMethod("ForceLOD", flag, null, args, null); app.RegisterCLRMethodRedirection(method, ForceLOD_16); args = new Type[]{}; method = type.GetMethod("get_crossFadeAnimationDuration", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_crossFadeAnimationDuration_17); args = new Type[]{typeof(System.Single)}; method = type.GetMethod("set_crossFadeAnimationDuration", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_crossFadeAnimationDuration_18); app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.LODGroup()); app.RegisterCLRCreateArrayInstance(type, s => new UnityEngine.LODGroup[s]); args = new Type[]{}; method = type.GetConstructor(flag, null, args, null); app.RegisterCLRMethodRedirection(method, Ctor_0); } static StackObject* get_localReferencePoint_0(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.localReferencePoint; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* set_localReferencePoint_1(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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), (CLR.Utils.Extensions.TypeFlags)16); __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), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.localReferencePoint = value; return __ret; } static StackObject* get_size_2(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.size; __ret->ObjectType = ObjectTypes.Float; *(float*)&__ret->Value = result_of_this_method; return __ret + 1; } static StackObject* set_size_3(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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.Single @value = *(float*)&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), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.size = value; return __ret; } static StackObject* get_lodCount_4(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.lodCount; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method; return __ret + 1; } static StackObject* get_lastLODBillboard_5(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.lastLODBillboard; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* set_lastLODBillboard_6(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.lastLODBillboard = value; return __ret; } static StackObject* get_fadeMode_7(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.fadeMode; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* set_fadeMode_8(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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.LODFadeMode @value = (UnityEngine.LODFadeMode)typeof(UnityEngine.LODFadeMode).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)20); __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), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.fadeMode = value; return __ret; } static StackObject* get_animateCrossFading_9(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.animateCrossFading; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* set_animateCrossFading_10(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.animateCrossFading = value; return __ret; } static StackObject* get_enabled_11(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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), (CLR.Utils.Extensions.TypeFlags)0); __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* set_enabled_12(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.enabled = value; return __ret; } static StackObject* RecalculateBounds_13(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.RecalculateBounds(); return __ret; } static StackObject* GetLODs_14(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.GetLODs(); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* SetLODs_15(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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), (CLR.Utils.Extensions.TypeFlags)0); __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), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.SetLODs(@lods); return __ret; } static StackObject* ForceLOD_16(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.ForceLOD(@index); return __ret; } static StackObject* get_crossFadeAnimationDuration_17(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* __ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = UnityEngine.LODGroup.crossFadeAnimationDuration; __ret->ObjectType = ObjectTypes.Float; *(float*)&__ret->Value = result_of_this_method; return __ret + 1; } static StackObject* set_crossFadeAnimationDuration_18(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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); System.Single @value = *(float*)&ptr_of_this_method->Value; UnityEngine.LODGroup.crossFadeAnimationDuration = value; return __ret; } static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* __ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = new UnityEngine.LODGroup(); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } } }