#if FUSION2 && XRMOD_INSTALL 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 Fusion_NetworkPrefabTable_Binding { public static void Register(UnityFusion.Runtime.Enviorment.AppDomain app) { BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly; MethodBase method; FieldInfo field; Type[] args; Type type = typeof(Fusion.NetworkPrefabTable); args = new Type[]{}; method = type.GetMethod("get_Prefabs", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_Prefabs_0); args = new Type[]{}; method = type.GetMethod("get_Version", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_Version_1); args = new Type[]{}; method = type.GetMethod("GetEntries", flag, null, args, null); app.RegisterCLRMethodRedirection(method, GetEntries_2); args = new Type[]{typeof(Fusion.INetworkPrefabSource)}; method = type.GetMethod("AddSource", flag, null, args, null); app.RegisterCLRMethodRedirection(method, AddSource_3); args = new Type[]{typeof(Fusion.INetworkPrefabSource), typeof(Fusion.NetworkPrefabId).MakeByRefType()}; method = type.GetMethod("TryAddSource", flag, null, args, null); app.RegisterCLRMethodRedirection(method, TryAddSource_4); args = new Type[]{typeof(Fusion.NetworkObjectGuid)}; method = type.GetMethod("GetSource", flag, null, args, null); app.RegisterCLRMethodRedirection(method, GetSource_5); args = new Type[]{typeof(Fusion.NetworkPrefabId)}; method = type.GetMethod("GetSource", flag, null, args, null); app.RegisterCLRMethodRedirection(method, GetSource_6); args = new Type[]{typeof(Fusion.NetworkObjectGuid)}; method = type.GetMethod("GetId", flag, null, args, null); app.RegisterCLRMethodRedirection(method, GetId_7); args = new Type[]{typeof(Fusion.NetworkPrefabId)}; method = type.GetMethod("GetGuid", flag, null, args, null); app.RegisterCLRMethodRedirection(method, GetGuid_8); args = new Type[]{typeof(Fusion.NetworkPrefabId)}; method = type.GetMethod("GetInstancesCount", flag, null, args, null); app.RegisterCLRMethodRedirection(method, GetInstancesCount_9); args = new Type[]{typeof(Fusion.NetworkPrefabId)}; method = type.GetMethod("AddInstance", flag, null, args, null); app.RegisterCLRMethodRedirection(method, AddInstance_10); args = new Type[]{typeof(Fusion.NetworkPrefabId)}; method = type.GetMethod("RemoveInstance", flag, null, args, null); app.RegisterCLRMethodRedirection(method, RemoveInstance_11); args = new Type[]{typeof(Fusion.NetworkPrefabId)}; method = type.GetMethod("Contains", flag, null, args, null); app.RegisterCLRMethodRedirection(method, Contains_12); args = new Type[]{typeof(Fusion.NetworkPrefabId)}; method = type.GetMethod("IsAcquired", flag, null, args, null); app.RegisterCLRMethodRedirection(method, IsAcquired_13); args = new Type[]{typeof(Fusion.NetworkPrefabId), typeof(System.Boolean)}; method = type.GetMethod("Load", flag, null, args, null); app.RegisterCLRMethodRedirection(method, Load_14); args = new Type[]{typeof(Fusion.NetworkPrefabId)}; method = type.GetMethod("Unload", flag, null, args, null); app.RegisterCLRMethodRedirection(method, Unload_15); args = new Type[]{typeof(System.Boolean)}; method = type.GetMethod("UnloadUnreferenced", flag, null, args, null); app.RegisterCLRMethodRedirection(method, UnloadUnreferenced_16); args = new Type[]{}; method = type.GetMethod("UnloadAll", flag, null, args, null); app.RegisterCLRMethodRedirection(method, UnloadAll_17); args = new Type[]{}; method = type.GetMethod("Clear", flag, null, args, null); app.RegisterCLRMethodRedirection(method, Clear_18); field = type.GetField("Options", flag); app.RegisterCLRFieldGetter(field, get_Options_0); app.RegisterCLRFieldSetter(field, set_Options_0); app.RegisterCLRFieldBinding(field, CopyToStack_Options_0, AssignFromStack_Options_0); app.RegisterCLRCreateDefaultInstance(type, () => new Fusion.NetworkPrefabTable()); app.RegisterCLRCreateArrayInstance(type, s => new Fusion.NetworkPrefabTable[s]); args = new Type[]{}; method = type.GetConstructor(flag, null, args, null); app.RegisterCLRMethodRedirection(method, Ctor_0); } static StackObject* get_Prefabs_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); Fusion.NetworkPrefabTable instance_of_this_method = (Fusion.NetworkPrefabTable)typeof(Fusion.NetworkPrefabTable).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.Prefabs; 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_Version_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); Fusion.NetworkPrefabTable instance_of_this_method = (Fusion.NetworkPrefabTable)typeof(Fusion.NetworkPrefabTable).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.Version; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method; return __ret + 1; } static StackObject* GetEntries_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); Fusion.NetworkPrefabTable instance_of_this_method = (Fusion.NetworkPrefabTable)typeof(Fusion.NetworkPrefabTable).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.GetEntries(); 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* AddSource_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); Fusion.INetworkPrefabSource @source = (Fusion.INetworkPrefabSource)typeof(Fusion.INetworkPrefabSource).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); Fusion.NetworkPrefabTable instance_of_this_method = (Fusion.NetworkPrefabTable)typeof(Fusion.NetworkPrefabTable).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.AddSource(@source); return __ret; } static StackObject* TryAddSource_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, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); Fusion.NetworkPrefabId @id = (Fusion.NetworkPrefabId)typeof(Fusion.NetworkPrefabId).CheckCLRTypes(__intp.RetriveObject(ptr_of_this_method, __mStack), (CLR.Utils.Extensions.TypeFlags)16); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); Fusion.INetworkPrefabSource @source = (Fusion.INetworkPrefabSource)typeof(Fusion.INetworkPrefabSource).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); Fusion.NetworkPrefabTable instance_of_this_method = (Fusion.NetworkPrefabTable)typeof(Fusion.NetworkPrefabTable).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); var result_of_this_method = instance_of_this_method.TryAddSource(@source, out @id); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); switch(ptr_of_this_method->ObjectType) { case ObjectTypes.StackObjectReference: { var ___dst = ILIntepreter.ResolveReference(ptr_of_this_method); object ___obj = @id; if (___dst->ObjectType >= ObjectTypes.Object) { if (___obj is CrossBindingAdaptorType) ___obj = ((CrossBindingAdaptorType)___obj).ILInstance; __mStack[___dst->Value] = ___obj; } else { ILIntepreter.UnboxObject(___dst, ___obj, __mStack, __domain); } } break; case ObjectTypes.FieldReference: { var ___obj = __mStack[ptr_of_this_method->Value]; if(___obj is ILTypeInstance) { ((ILTypeInstance)___obj)[ptr_of_this_method->ValueLow] = @id; } else { var ___type = __domain.GetType(___obj.GetType()) as CLRType; ___type.SetFieldValue(ptr_of_this_method->ValueLow, ref ___obj, @id); } } break; case ObjectTypes.StaticFieldReference: { var ___type = __domain.GetType(ptr_of_this_method->Value); if(___type is ILType) { ((ILType)___type).StaticInstance[ptr_of_this_method->ValueLow] = @id; } else { ((CLRType)___type).SetStaticFieldValue(ptr_of_this_method->ValueLow, @id); } } break; case ObjectTypes.ArrayReference: { var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as Fusion.NetworkPrefabId[]; instance_of_arrayReference[ptr_of_this_method->ValueLow] = @id; } break; } __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); __intp.Free(ptr_of_this_method); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* GetSource_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); Fusion.NetworkObjectGuid @guid = (Fusion.NetworkObjectGuid)typeof(Fusion.NetworkObjectGuid).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); Fusion.NetworkPrefabTable instance_of_this_method = (Fusion.NetworkPrefabTable)typeof(Fusion.NetworkPrefabTable).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.GetSource(@guid); 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* GetSource_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); Fusion.NetworkPrefabId @prefabId = (Fusion.NetworkPrefabId)typeof(Fusion.NetworkPrefabId).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); Fusion.NetworkPrefabTable instance_of_this_method = (Fusion.NetworkPrefabTable)typeof(Fusion.NetworkPrefabTable).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.GetSource(@prefabId); 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* GetId_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); Fusion.NetworkObjectGuid @guid = (Fusion.NetworkObjectGuid)typeof(Fusion.NetworkObjectGuid).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); Fusion.NetworkPrefabTable instance_of_this_method = (Fusion.NetworkPrefabTable)typeof(Fusion.NetworkPrefabTable).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.GetId(@guid); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* GetGuid_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); Fusion.NetworkPrefabId @prefabId = (Fusion.NetworkPrefabId)typeof(Fusion.NetworkPrefabId).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); Fusion.NetworkPrefabTable instance_of_this_method = (Fusion.NetworkPrefabTable)typeof(Fusion.NetworkPrefabTable).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.GetGuid(@prefabId); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* GetInstancesCount_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); Fusion.NetworkPrefabId @prefabId = (Fusion.NetworkPrefabId)typeof(Fusion.NetworkPrefabId).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); Fusion.NetworkPrefabTable instance_of_this_method = (Fusion.NetworkPrefabTable)typeof(Fusion.NetworkPrefabTable).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.GetInstancesCount(@prefabId); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method; return __ret + 1; } static StackObject* AddInstance_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); Fusion.NetworkPrefabId @prefabId = (Fusion.NetworkPrefabId)typeof(Fusion.NetworkPrefabId).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); Fusion.NetworkPrefabTable instance_of_this_method = (Fusion.NetworkPrefabTable)typeof(Fusion.NetworkPrefabTable).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.AddInstance(@prefabId); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method; return __ret + 1; } static StackObject* RemoveInstance_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); Fusion.NetworkPrefabId @prefabId = (Fusion.NetworkPrefabId)typeof(Fusion.NetworkPrefabId).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); Fusion.NetworkPrefabTable instance_of_this_method = (Fusion.NetworkPrefabTable)typeof(Fusion.NetworkPrefabTable).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.RemoveInstance(@prefabId); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method; return __ret + 1; } static StackObject* Contains_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); Fusion.NetworkPrefabId @prefabId = (Fusion.NetworkPrefabId)typeof(Fusion.NetworkPrefabId).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); Fusion.NetworkPrefabTable instance_of_this_method = (Fusion.NetworkPrefabTable)typeof(Fusion.NetworkPrefabTable).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.Contains(@prefabId); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* IsAcquired_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); Fusion.NetworkPrefabId @prefabId = (Fusion.NetworkPrefabId)typeof(Fusion.NetworkPrefabId).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); Fusion.NetworkPrefabTable instance_of_this_method = (Fusion.NetworkPrefabTable)typeof(Fusion.NetworkPrefabTable).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.IsAcquired(@prefabId); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* Load_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, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Boolean @isSynchronous = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); Fusion.NetworkPrefabId @prefabId = (Fusion.NetworkPrefabId)typeof(Fusion.NetworkPrefabId).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); Fusion.NetworkPrefabTable instance_of_this_method = (Fusion.NetworkPrefabTable)typeof(Fusion.NetworkPrefabTable).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.Load(@prefabId, @isSynchronous); 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* Unload_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); Fusion.NetworkPrefabId @prefabId = (Fusion.NetworkPrefabId)typeof(Fusion.NetworkPrefabId).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); Fusion.NetworkPrefabTable instance_of_this_method = (Fusion.NetworkPrefabTable)typeof(Fusion.NetworkPrefabTable).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.Unload(@prefabId); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* UnloadUnreferenced_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.Boolean @includeIncompleteLoads = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); Fusion.NetworkPrefabTable instance_of_this_method = (Fusion.NetworkPrefabTable)typeof(Fusion.NetworkPrefabTable).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.UnloadUnreferenced(@includeIncompleteLoads); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method; return __ret + 1; } static StackObject* UnloadAll_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); Fusion.NetworkPrefabTable instance_of_this_method = (Fusion.NetworkPrefabTable)typeof(Fusion.NetworkPrefabTable).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.UnloadAll(); return __ret; } static StackObject* Clear_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); Fusion.NetworkPrefabTable instance_of_this_method = (Fusion.NetworkPrefabTable)typeof(Fusion.NetworkPrefabTable).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.Clear(); return __ret; } static object get_Options_0(ref object o) { return ((Fusion.NetworkPrefabTable)o).Options; } static StackObject* CopyToStack_Options_0(ref object o, ILIntepreter __intp, StackObject* __ret, AutoList __mStack) { var result_of_this_method = ((Fusion.NetworkPrefabTable)o).Options; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static void set_Options_0(ref object o, object v) { ((Fusion.NetworkPrefabTable)o).Options = (Fusion.NetworkPrefabTableOptions)v; } static StackObject* AssignFromStack_Options_0(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, AutoList __mStack) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; Fusion.NetworkPrefabTableOptions @Options = (Fusion.NetworkPrefabTableOptions)typeof(Fusion.NetworkPrefabTableOptions).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16); ((Fusion.NetworkPrefabTable)o).Options = @Options; return ptr_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 Fusion.NetworkPrefabTable(); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } } } #endif