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_GridLayout_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.GridLayout); args = new Type[]{}; method = type.GetMethod("get_cellSize", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_cellSize_0); args = new Type[]{}; method = type.GetMethod("get_cellGap", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_cellGap_1); args = new Type[]{}; method = type.GetMethod("get_cellLayout", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_cellLayout_2); args = new Type[]{}; method = type.GetMethod("get_cellSwizzle", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_cellSwizzle_3); args = new Type[]{typeof(UnityEngine.Vector3Int)}; method = type.GetMethod("GetBoundsLocal", flag, null, args, null); app.RegisterCLRMethodRedirection(method, GetBoundsLocal_4); args = new Type[]{typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3)}; method = type.GetMethod("GetBoundsLocal", flag, null, args, null); app.RegisterCLRMethodRedirection(method, GetBoundsLocal_5); args = new Type[]{typeof(UnityEngine.Vector3Int)}; method = type.GetMethod("CellToLocal", flag, null, args, null); app.RegisterCLRMethodRedirection(method, CellToLocal_6); args = new Type[]{typeof(UnityEngine.Vector3)}; method = type.GetMethod("LocalToCell", flag, null, args, null); app.RegisterCLRMethodRedirection(method, LocalToCell_7); args = new Type[]{typeof(UnityEngine.Vector3)}; method = type.GetMethod("CellToLocalInterpolated", flag, null, args, null); app.RegisterCLRMethodRedirection(method, CellToLocalInterpolated_8); args = new Type[]{typeof(UnityEngine.Vector3)}; method = type.GetMethod("LocalToCellInterpolated", flag, null, args, null); app.RegisterCLRMethodRedirection(method, LocalToCellInterpolated_9); args = new Type[]{typeof(UnityEngine.Vector3Int)}; method = type.GetMethod("CellToWorld", flag, null, args, null); app.RegisterCLRMethodRedirection(method, CellToWorld_10); args = new Type[]{typeof(UnityEngine.Vector3)}; method = type.GetMethod("WorldToCell", flag, null, args, null); app.RegisterCLRMethodRedirection(method, WorldToCell_11); args = new Type[]{typeof(UnityEngine.Vector3)}; method = type.GetMethod("LocalToWorld", flag, null, args, null); app.RegisterCLRMethodRedirection(method, LocalToWorld_12); args = new Type[]{typeof(UnityEngine.Vector3)}; method = type.GetMethod("WorldToLocal", flag, null, args, null); app.RegisterCLRMethodRedirection(method, WorldToLocal_13); args = new Type[]{}; method = type.GetMethod("GetLayoutCellCenter", flag, null, args, null); app.RegisterCLRMethodRedirection(method, GetLayoutCellCenter_14); app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.GridLayout()); app.RegisterCLRCreateArrayInstance(type, s => new UnityEngine.GridLayout[s]); args = new Type[]{}; method = type.GetConstructor(flag, null, args, null); app.RegisterCLRMethodRedirection(method, Ctor_0); } static StackObject* get_cellSize_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.GridLayout instance_of_this_method = (UnityEngine.GridLayout)typeof(UnityEngine.GridLayout).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.cellSize; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_cellGap_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, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.GridLayout instance_of_this_method = (UnityEngine.GridLayout)typeof(UnityEngine.GridLayout).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.cellGap; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_cellLayout_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.GridLayout instance_of_this_method = (UnityEngine.GridLayout)typeof(UnityEngine.GridLayout).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.cellLayout; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_cellSwizzle_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, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.GridLayout instance_of_this_method = (UnityEngine.GridLayout)typeof(UnityEngine.GridLayout).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.cellSwizzle; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* GetBoundsLocal_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, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.Vector3Int @cellPosition = (UnityEngine.Vector3Int)typeof(UnityEngine.Vector3Int).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.GridLayout instance_of_this_method = (UnityEngine.GridLayout)typeof(UnityEngine.GridLayout).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.GetBoundsLocal(@cellPosition); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* GetBoundsLocal_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, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.Vector3 @size = (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.Vector3 @origin = (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, 3); UnityEngine.GridLayout instance_of_this_method = (UnityEngine.GridLayout)typeof(UnityEngine.GridLayout).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.GetBoundsLocal(@origin, @size); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* CellToLocal_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); UnityEngine.Vector3Int @cellPosition = (UnityEngine.Vector3Int)typeof(UnityEngine.Vector3Int).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.GridLayout instance_of_this_method = (UnityEngine.GridLayout)typeof(UnityEngine.GridLayout).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.CellToLocal(@cellPosition); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* LocalToCell_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.Vector3 @localPosition = (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.GridLayout instance_of_this_method = (UnityEngine.GridLayout)typeof(UnityEngine.GridLayout).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.LocalToCell(@localPosition); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* CellToLocalInterpolated_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.Vector3 @cellPosition = (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.GridLayout instance_of_this_method = (UnityEngine.GridLayout)typeof(UnityEngine.GridLayout).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.CellToLocalInterpolated(@cellPosition); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* LocalToCellInterpolated_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); UnityEngine.Vector3 @localPosition = (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.GridLayout instance_of_this_method = (UnityEngine.GridLayout)typeof(UnityEngine.GridLayout).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.LocalToCellInterpolated(@localPosition); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* CellToWorld_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); UnityEngine.Vector3Int @cellPosition = (UnityEngine.Vector3Int)typeof(UnityEngine.Vector3Int).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.GridLayout instance_of_this_method = (UnityEngine.GridLayout)typeof(UnityEngine.GridLayout).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.CellToWorld(@cellPosition); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* WorldToCell_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); UnityEngine.Vector3 @worldPosition = (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.GridLayout instance_of_this_method = (UnityEngine.GridLayout)typeof(UnityEngine.GridLayout).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.WorldToCell(@worldPosition); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* LocalToWorld_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); UnityEngine.Vector3 @localPosition = (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.GridLayout instance_of_this_method = (UnityEngine.GridLayout)typeof(UnityEngine.GridLayout).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.LocalToWorld(@localPosition); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* WorldToLocal_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.Vector3 @worldPosition = (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.GridLayout instance_of_this_method = (UnityEngine.GridLayout)typeof(UnityEngine.GridLayout).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.WorldToLocal(@worldPosition); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* GetLayoutCellCenter_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.GridLayout instance_of_this_method = (UnityEngine.GridLayout)typeof(UnityEngine.GridLayout).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.GetLayoutCellCenter(); 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.GridLayout(); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } } }