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 Goap_Agent_Runtime_AgentBehaviour_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(Goap.Agent.Runtime.AgentBehaviour); args = new Type[]{}; method = type.GetMethod("get_ActionProviderBase", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_ActionProviderBase_0); args = new Type[]{typeof(Goap.Agent.Runtime.ActionProviderBase)}; method = type.GetMethod("set_ActionProviderBase", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_ActionProviderBase_1); args = new Type[]{}; method = type.GetMethod("get_ActionProvider", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_ActionProvider_2); args = new Type[]{typeof(Goap.Agent.Core.IActionProvider)}; method = type.GetMethod("set_ActionProvider", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_ActionProvider_3); args = new Type[]{}; method = type.GetMethod("get_LoggerConfig", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_LoggerConfig_4); args = new Type[]{typeof(Goap.Agent.Runtime.LoggerConfig)}; method = type.GetMethod("set_LoggerConfig", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_LoggerConfig_5); args = new Type[]{}; method = type.GetMethod("get_State", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_State_6); args = new Type[]{}; method = type.GetMethod("get_MoveState", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_MoveState_7); args = new Type[]{}; method = type.GetMethod("get_ActionState", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_ActionState_8); args = new Type[]{}; method = type.GetMethod("get_Events", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_Events_9); args = new Type[]{}; method = type.GetMethod("get_Injector", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_Injector_10); args = new Type[]{}; method = type.GetMethod("get_DistanceObserver", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_DistanceObserver_11); args = new Type[]{typeof(Goap.Agent.Core.IAgentDistanceObserver)}; method = type.GetMethod("set_DistanceObserver", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_DistanceObserver_12); args = new Type[]{}; method = type.GetMethod("get_Logger", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_Logger_13); args = new Type[]{typeof(Goap.Agent.Core.ILogger)}; method = type.GetMethod("set_Logger", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_Logger_14); args = new Type[]{}; method = type.GetMethod("get_Timers", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_Timers_15); args = new Type[]{}; method = type.GetMethod("get_CurrentTarget", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_CurrentTarget_16); args = new Type[]{}; method = type.GetMethod("get_Transform", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_Transform_17); args = new Type[]{}; method = type.GetMethod("Initialize", flag, null, args, null); app.RegisterCLRMethodRedirection(method, Initialize_18); args = new Type[]{}; method = type.GetMethod("Run", flag, null, args, null); app.RegisterCLRMethodRedirection(method, Run_19); args = new Type[]{typeof(Goap.Agent.Core.IActionProvider), typeof(Goap.Agent.Core.IAction), typeof(Goap.Agent.Core.ITarget)}; method = type.GetMethod("SetAction", flag, null, args, null); app.RegisterCLRMethodRedirection(method, SetAction_20); args = new Type[]{typeof(System.Boolean)}; method = type.GetMethod("StopAction", flag, null, args, null); app.RegisterCLRMethodRedirection(method, StopAction_21); args = new Type[]{typeof(System.Boolean)}; method = type.GetMethod("CompleteAction", flag, null, args, null); app.RegisterCLRMethodRedirection(method, CompleteAction_22); args = new Type[]{}; method = type.GetMethod("ResolveAction", flag, null, args, null); app.RegisterCLRMethodRedirection(method, ResolveAction_23); app.RegisterCLRCreateDefaultInstance(type, () => new Goap.Agent.Runtime.AgentBehaviour()); app.RegisterCLRCreateArrayInstance(type, s => new Goap.Agent.Runtime.AgentBehaviour[s]); args = new Type[]{}; method = type.GetConstructor(flag, null, args, null); app.RegisterCLRMethodRedirection(method, Ctor_0); } static StackObject* get_ActionProviderBase_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); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).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.ActionProviderBase; 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_ActionProviderBase_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); Goap.Agent.Runtime.ActionProviderBase @value = (Goap.Agent.Runtime.ActionProviderBase)typeof(Goap.Agent.Runtime.ActionProviderBase).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); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.ActionProviderBase = value; return __ret; } static StackObject* get_ActionProvider_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); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).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.ActionProvider; 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_ActionProvider_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); Goap.Agent.Core.IActionProvider @value = (Goap.Agent.Core.IActionProvider)typeof(Goap.Agent.Core.IActionProvider).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); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.ActionProvider = value; return __ret; } static StackObject* get_LoggerConfig_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); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).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.LoggerConfig; 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_LoggerConfig_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); Goap.Agent.Runtime.LoggerConfig @value = (Goap.Agent.Runtime.LoggerConfig)typeof(Goap.Agent.Runtime.LoggerConfig).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); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.LoggerConfig = value; return __ret; } static StackObject* get_State_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); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).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.State; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_MoveState_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); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).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.MoveState; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_ActionState_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); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).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.ActionState; 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* get_Events_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); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).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.Events; 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* get_Injector_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); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).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.Injector; 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* get_DistanceObserver_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); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).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.DistanceObserver; 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_DistanceObserver_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); Goap.Agent.Core.IAgentDistanceObserver @value = (Goap.Agent.Core.IAgentDistanceObserver)typeof(Goap.Agent.Core.IAgentDistanceObserver).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); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.DistanceObserver = value; return __ret; } static StackObject* get_Logger_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); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).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.Logger; 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_Logger_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, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); Goap.Agent.Core.ILogger @value = (Goap.Agent.Core.ILogger)typeof(Goap.Agent.Core.ILogger).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); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.Logger = value; return __ret; } static StackObject* get_Timers_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); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).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.Timers; 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* get_CurrentTarget_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); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).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.CurrentTarget; 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* get_Transform_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); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).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.Transform; 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* Initialize_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); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.Initialize(); return __ret; } static StackObject* Run_19(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); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.Run(); return __ret; } static StackObject* SetAction_20(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, 4); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); Goap.Agent.Core.ITarget @target = (Goap.Agent.Core.ITarget)typeof(Goap.Agent.Core.ITarget).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); Goap.Agent.Core.IAction @action = (Goap.Agent.Core.IAction)typeof(Goap.Agent.Core.IAction).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, 3); Goap.Agent.Core.IActionProvider @actionProvider = (Goap.Agent.Core.IActionProvider)typeof(Goap.Agent.Core.IActionProvider).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, 4); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.SetAction(@actionProvider, @action, @target); return __ret; } static StackObject* StopAction_21(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 @resolveAction = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.StopAction(@resolveAction); return __ret; } static StackObject* CompleteAction_22(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 @resolveAction = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.CompleteAction(@resolveAction); return __ret; } static StackObject* ResolveAction_23(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); Goap.Agent.Runtime.AgentBehaviour instance_of_this_method = (Goap.Agent.Runtime.AgentBehaviour)typeof(Goap.Agent.Runtime.AgentBehaviour).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.ResolveAction(); 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 Goap.Agent.Runtime.AgentBehaviour(); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } } }