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_NetworkBehaviour_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(Fusion.NetworkBehaviour); args = new Type[]{}; method = type.GetMethod("get_StateBufferIsValid", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_StateBufferIsValid_0); args = new Type[]{}; method = type.GetMethod("get_StateBuffer", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_StateBuffer_1); args = new Type[]{}; method = type.GetMethod("get_WordInfo", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_WordInfo_2); args = new Type[]{}; method = type.GetMethod("get_ChangedTick", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_ChangedTick_3); args = new Type[]{}; method = type.GetMethod("get_Id", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_Id_4); args = new Type[]{}; method = type.GetMethod("get_HasInputAuthority", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_HasInputAuthority_5); args = new Type[]{}; method = type.GetMethod("get_HasStateAuthority", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_HasStateAuthority_6); args = new Type[]{}; method = type.GetMethod("get_IsProxy", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_IsProxy_7); args = new Type[]{}; method = type.GetMethod("get_DynamicWordCount", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_DynamicWordCount_8); args = new Type[]{}; method = type.GetMethod("GetLocalAuthorityMask", flag, null, args, null); app.RegisterCLRMethodRedirection(method, GetLocalAuthorityMask_9); args = new Type[]{typeof(Fusion.PlayerRef), typeof(System.Boolean)}; method = type.GetMethod("ReplicateTo", flag, null, args, null); app.RegisterCLRMethodRedirection(method, ReplicateTo_10); args = new Type[]{typeof(System.Boolean)}; method = type.GetMethod("ReplicateToAll", flag, null, args, null); app.RegisterCLRMethodRedirection(method, ReplicateToAll_11); args = new Type[]{}; method = type.GetMethod("ResetState", flag, null, args, null); app.RegisterCLRMethodRedirection(method, ResetState_12); args = new Type[]{typeof(Fusion.NetworkBehaviour)}; method = type.GetMethod("CopyStateFrom", flag, null, args, null); app.RegisterCLRMethodRedirection(method, CopyStateFrom_13); args = new Type[]{}; method = type.GetMethod("FixedUpdateNetwork", flag, null, args, null); app.RegisterCLRMethodRedirection(method, FixedUpdateNetwork_14); args = new Type[]{typeof(System.Boolean)}; method = type.GetMethod("CopyBackingFieldsToState", flag, null, args, null); app.RegisterCLRMethodRedirection(method, CopyBackingFieldsToState_15); args = new Type[]{}; method = type.GetMethod("CopyStateToBackingFields", flag, null, args, null); app.RegisterCLRMethodRedirection(method, CopyStateToBackingFields_16); args = new Type[]{}; method = type.GetMethod("Spawned", flag, null, args, null); app.RegisterCLRMethodRedirection(method, Spawned_17); args = new Type[]{typeof(Fusion.NetworkRunner), typeof(System.Boolean)}; method = type.GetMethod("Despawned", flag, null, args, null); app.RegisterCLRMethodRedirection(method, Despawned_18); args = new Type[]{typeof(Fusion.NetworkBehaviour.ChangeDetector.Source), typeof(System.Boolean)}; method = type.GetMethod("GetChangeDetector", flag, null, args, null); app.RegisterCLRMethodRedirection(method, GetChangeDetector_19); args = new Type[]{typeof(Fusion.NetworkRunner), typeof(Fusion.NetworkBehaviour)}; method = type.GetMethod("NetworkWrap", flag, null, args, null); app.RegisterCLRMethodRedirection(method, NetworkWrap_21); args = new Type[]{typeof(Fusion.NetworkRunner), typeof(Fusion.NetworkBehaviourId)}; method = type.GetMethod("NetworkUnwrap", flag, null, args, null); app.RegisterCLRMethodRedirection(method, NetworkUnwrap_22); args = new Type[]{typeof(Fusion.NetworkBehaviour)}; method = type.GetMethod("op_Implicit", flag, null, args, null); app.RegisterCLRMethodRedirection(method, op_Implicit_23); app.RegisterCLRCreateArrayInstance(type, s => new Fusion.NetworkBehaviour[s]); } static StackObject* get_StateBufferIsValid_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.NetworkBehaviour instance_of_this_method = (Fusion.NetworkBehaviour)typeof(Fusion.NetworkBehaviour).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.StateBufferIsValid; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* get_StateBuffer_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.NetworkBehaviour instance_of_this_method = (Fusion.NetworkBehaviour)typeof(Fusion.NetworkBehaviour).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.StateBuffer; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_WordInfo_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.NetworkBehaviour instance_of_this_method = (Fusion.NetworkBehaviour)typeof(Fusion.NetworkBehaviour).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.WordInfo; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_ChangedTick_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); Fusion.NetworkBehaviour instance_of_this_method = (Fusion.NetworkBehaviour)typeof(Fusion.NetworkBehaviour).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.ChangedTick; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_Id_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); Fusion.NetworkBehaviour instance_of_this_method = (Fusion.NetworkBehaviour)typeof(Fusion.NetworkBehaviour).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.Id; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_HasInputAuthority_5(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); Fusion.NetworkBehaviour instance_of_this_method = (Fusion.NetworkBehaviour)typeof(Fusion.NetworkBehaviour).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.HasInputAuthority; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* get_HasStateAuthority_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); Fusion.NetworkBehaviour instance_of_this_method = (Fusion.NetworkBehaviour)typeof(Fusion.NetworkBehaviour).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.HasStateAuthority; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* get_IsProxy_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); Fusion.NetworkBehaviour instance_of_this_method = (Fusion.NetworkBehaviour)typeof(Fusion.NetworkBehaviour).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.IsProxy; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* get_DynamicWordCount_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); Fusion.NetworkBehaviour instance_of_this_method = (Fusion.NetworkBehaviour)typeof(Fusion.NetworkBehaviour).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.DynamicWordCount; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* GetLocalAuthorityMask_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); Fusion.NetworkBehaviour instance_of_this_method = (Fusion.NetworkBehaviour)typeof(Fusion.NetworkBehaviour).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.GetLocalAuthorityMask(); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method; return __ret + 1; } static StackObject* ReplicateTo_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, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Boolean @replicate = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); Fusion.PlayerRef @player = (Fusion.PlayerRef)typeof(Fusion.PlayerRef).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.NetworkBehaviour instance_of_this_method = (Fusion.NetworkBehaviour)typeof(Fusion.NetworkBehaviour).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.ReplicateTo(@player, @replicate); return __ret; } static StackObject* ReplicateToAll_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.Boolean @replicate = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); Fusion.NetworkBehaviour instance_of_this_method = (Fusion.NetworkBehaviour)typeof(Fusion.NetworkBehaviour).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.ReplicateToAll(@replicate); return __ret; } static StackObject* ResetState_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); Fusion.NetworkBehaviour instance_of_this_method = (Fusion.NetworkBehaviour)typeof(Fusion.NetworkBehaviour).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.ResetState(); return __ret; } static StackObject* CopyStateFrom_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.NetworkBehaviour @source = (Fusion.NetworkBehaviour)typeof(Fusion.NetworkBehaviour).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.NetworkBehaviour instance_of_this_method = (Fusion.NetworkBehaviour)typeof(Fusion.NetworkBehaviour).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.CopyStateFrom(@source); return __ret; } static StackObject* FixedUpdateNetwork_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); Fusion.NetworkBehaviour instance_of_this_method = (Fusion.NetworkBehaviour)typeof(Fusion.NetworkBehaviour).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.FixedUpdateNetwork(); return __ret; } static StackObject* CopyBackingFieldsToState_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); System.Boolean @firstTime = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); Fusion.NetworkBehaviour instance_of_this_method = (Fusion.NetworkBehaviour)typeof(Fusion.NetworkBehaviour).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.CopyBackingFieldsToState(@firstTime); return __ret; } static StackObject* CopyStateToBackingFields_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); Fusion.NetworkBehaviour instance_of_this_method = (Fusion.NetworkBehaviour)typeof(Fusion.NetworkBehaviour).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.CopyStateToBackingFields(); return __ret; } static StackObject* Spawned_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.NetworkBehaviour instance_of_this_method = (Fusion.NetworkBehaviour)typeof(Fusion.NetworkBehaviour).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.Spawned(); return __ret; } static StackObject* Despawned_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, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Boolean @hasState = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); Fusion.NetworkRunner @runner = (Fusion.NetworkRunner)typeof(Fusion.NetworkRunner).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); Fusion.NetworkBehaviour instance_of_this_method = (Fusion.NetworkBehaviour)typeof(Fusion.NetworkBehaviour).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.Despawned(@runner, @hasState); return __ret; } static StackObject* GetChangeDetector_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, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Boolean @copyInitial = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); Fusion.NetworkBehaviour.ChangeDetector.Source @source = (Fusion.NetworkBehaviour.ChangeDetector.Source)typeof(Fusion.NetworkBehaviour.ChangeDetector.Source).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)20); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); Fusion.NetworkBehaviour instance_of_this_method = (Fusion.NetworkBehaviour)typeof(Fusion.NetworkBehaviour).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.GetChangeDetector(@source, @copyInitial); 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* NetworkWrap_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); Fusion.NetworkBehaviour @obj = (Fusion.NetworkBehaviour)typeof(Fusion.NetworkBehaviour).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.NetworkRunner @runner = (Fusion.NetworkRunner)typeof(Fusion.NetworkRunner).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 = Fusion.NetworkBehaviour.NetworkWrap(@runner, @obj); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* NetworkUnwrap_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); Fusion.NetworkBehaviourId @wrapper = (Fusion.NetworkBehaviourId)typeof(Fusion.NetworkBehaviourId).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.NetworkRunner @runner = (Fusion.NetworkRunner)typeof(Fusion.NetworkRunner).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 = Fusion.NetworkBehaviour.NetworkUnwrap(@runner, @wrapper); 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* op_Implicit_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); Fusion.NetworkBehaviour @behaviour = (Fusion.NetworkBehaviour)typeof(Fusion.NetworkBehaviour).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 = (Fusion.NetworkBehaviourId)behaviour; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } } }