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_AnimationEvent_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.AnimationEvent); args = new Type[]{}; method = type.GetMethod("get_stringParameter", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_stringParameter_0); args = new Type[]{typeof(System.String)}; method = type.GetMethod("set_stringParameter", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_stringParameter_1); args = new Type[]{}; method = type.GetMethod("get_floatParameter", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_floatParameter_2); args = new Type[]{typeof(System.Single)}; method = type.GetMethod("set_floatParameter", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_floatParameter_3); args = new Type[]{}; method = type.GetMethod("get_intParameter", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_intParameter_4); args = new Type[]{typeof(System.Int32)}; method = type.GetMethod("set_intParameter", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_intParameter_5); args = new Type[]{}; method = type.GetMethod("get_objectReferenceParameter", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_objectReferenceParameter_6); args = new Type[]{typeof(UnityEngine.Object)}; method = type.GetMethod("set_objectReferenceParameter", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_objectReferenceParameter_7); args = new Type[]{}; method = type.GetMethod("get_functionName", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_functionName_8); args = new Type[]{typeof(System.String)}; method = type.GetMethod("set_functionName", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_functionName_9); args = new Type[]{}; method = type.GetMethod("get_time", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_time_10); args = new Type[]{typeof(System.Single)}; method = type.GetMethod("set_time", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_time_11); args = new Type[]{}; method = type.GetMethod("get_messageOptions", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_messageOptions_12); args = new Type[]{typeof(UnityEngine.SendMessageOptions)}; method = type.GetMethod("set_messageOptions", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_messageOptions_13); args = new Type[]{}; method = type.GetMethod("get_isFiredByLegacy", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_isFiredByLegacy_14); args = new Type[]{}; method = type.GetMethod("get_isFiredByAnimator", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_isFiredByAnimator_15); args = new Type[]{}; method = type.GetMethod("get_animationState", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_animationState_16); args = new Type[]{}; method = type.GetMethod("get_animatorStateInfo", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_animatorStateInfo_17); args = new Type[]{}; method = type.GetMethod("get_animatorClipInfo", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_animatorClipInfo_18); app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.AnimationEvent()); app.RegisterCLRCreateArrayInstance(type, s => new UnityEngine.AnimationEvent[s]); args = new Type[]{}; method = type.GetConstructor(flag, null, args, null); app.RegisterCLRMethodRedirection(method, Ctor_0); } static StackObject* get_stringParameter_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.AnimationEvent instance_of_this_method = (UnityEngine.AnimationEvent)typeof(UnityEngine.AnimationEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.stringParameter; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* set_stringParameter_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); System.String @value = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.AnimationEvent instance_of_this_method = (UnityEngine.AnimationEvent)typeof(UnityEngine.AnimationEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.stringParameter = value; return __ret; } static StackObject* get_floatParameter_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.AnimationEvent instance_of_this_method = (UnityEngine.AnimationEvent)typeof(UnityEngine.AnimationEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.floatParameter; __ret->ObjectType = ObjectTypes.Float; *(float*)&__ret->Value = result_of_this_method; return __ret + 1; } static StackObject* set_floatParameter_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.AnimationEvent instance_of_this_method = (UnityEngine.AnimationEvent)typeof(UnityEngine.AnimationEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.floatParameter = value; return __ret; } static StackObject* get_intParameter_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.AnimationEvent instance_of_this_method = (UnityEngine.AnimationEvent)typeof(UnityEngine.AnimationEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.intParameter; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method; return __ret + 1; } static StackObject* set_intParameter_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, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Int32 @value = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.AnimationEvent instance_of_this_method = (UnityEngine.AnimationEvent)typeof(UnityEngine.AnimationEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.intParameter = value; return __ret; } static StackObject* get_objectReferenceParameter_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, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.AnimationEvent instance_of_this_method = (UnityEngine.AnimationEvent)typeof(UnityEngine.AnimationEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.objectReferenceParameter; object obj_result_of_this_method = result_of_this_method; if(obj_result_of_this_method is CrossBindingAdaptorType) { return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance); } return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* set_objectReferenceParameter_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, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.Object @value = (UnityEngine.Object)typeof(UnityEngine.Object).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.AnimationEvent instance_of_this_method = (UnityEngine.AnimationEvent)typeof(UnityEngine.AnimationEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.objectReferenceParameter = value; return __ret; } static StackObject* get_functionName_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, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.AnimationEvent instance_of_this_method = (UnityEngine.AnimationEvent)typeof(UnityEngine.AnimationEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.functionName; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* set_functionName_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, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.String @value = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.AnimationEvent instance_of_this_method = (UnityEngine.AnimationEvent)typeof(UnityEngine.AnimationEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.functionName = value; return __ret; } static StackObject* get_time_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, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.AnimationEvent instance_of_this_method = (UnityEngine.AnimationEvent)typeof(UnityEngine.AnimationEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.time; __ret->ObjectType = ObjectTypes.Float; *(float*)&__ret->Value = result_of_this_method; return __ret + 1; } static StackObject* set_time_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, 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.AnimationEvent instance_of_this_method = (UnityEngine.AnimationEvent)typeof(UnityEngine.AnimationEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.time = value; return __ret; } static StackObject* get_messageOptions_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, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.AnimationEvent instance_of_this_method = (UnityEngine.AnimationEvent)typeof(UnityEngine.AnimationEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.messageOptions; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* set_messageOptions_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, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.SendMessageOptions @value = (UnityEngine.SendMessageOptions)typeof(UnityEngine.SendMessageOptions).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.AnimationEvent instance_of_this_method = (UnityEngine.AnimationEvent)typeof(UnityEngine.AnimationEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.messageOptions = value; return __ret; } static StackObject* get_isFiredByLegacy_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.AnimationEvent instance_of_this_method = (UnityEngine.AnimationEvent)typeof(UnityEngine.AnimationEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.isFiredByLegacy; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* get_isFiredByAnimator_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, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.AnimationEvent instance_of_this_method = (UnityEngine.AnimationEvent)typeof(UnityEngine.AnimationEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.isFiredByAnimator; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* get_animationState_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, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.AnimationEvent instance_of_this_method = (UnityEngine.AnimationEvent)typeof(UnityEngine.AnimationEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.animationState; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_animatorStateInfo_17(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.AnimationEvent instance_of_this_method = (UnityEngine.AnimationEvent)typeof(UnityEngine.AnimationEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.animatorStateInfo; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_animatorClipInfo_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); UnityEngine.AnimationEvent instance_of_this_method = (UnityEngine.AnimationEvent)typeof(UnityEngine.AnimationEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.animatorClipInfo; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } 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.AnimationEvent(); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } } }