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_NetworkObject_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.NetworkObject); args = new Type[]{}; method = type.GetMethod("get_Id", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_Id_0); args = new Type[]{}; method = type.GetMethod("get_Runner", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_Runner_1); args = new Type[]{}; method = type.GetMethod("get_LastReceiveTick", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_LastReceiveTick_2); args = new Type[]{}; method = type.GetMethod("get_Name", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_Name_3); args = new Type[]{}; method = type.GetMethod("get_IsValid", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_IsValid_4); args = new Type[]{}; method = type.GetMethod("get_IsInSimulation", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_IsInSimulation_5); args = new Type[]{}; method = type.GetMethod("get_HasInputAuthority", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_HasInputAuthority_6); args = new Type[]{}; method = type.GetMethod("get_HasStateAuthority", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_HasStateAuthority_7); args = new Type[]{}; method = type.GetMethod("get_IsProxy", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_IsProxy_8); args = new Type[]{}; method = type.GetMethod("get_RenderTimeframe", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_RenderTimeframe_9); args = new Type[]{}; method = type.GetMethod("get_RenderSource", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_RenderSource_10); args = new Type[]{typeof(Fusion.RenderSource)}; method = type.GetMethod("set_RenderSource", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_RenderSource_11); args = new Type[]{}; method = type.GetMethod("get_RenderTime", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_RenderTime_12); args = new Type[]{}; method = type.GetMethod("get_InputAuthority", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_InputAuthority_13); args = new Type[]{}; method = type.GetMethod("get_StateAuthority", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_StateAuthority_14); args = new Type[]{}; method = type.GetMethod("get_IsSpawnable", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_IsSpawnable_15); args = new Type[]{typeof(System.Boolean)}; method = type.GetMethod("set_IsSpawnable", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_IsSpawnable_16); args = new Type[]{typeof(Fusion.NetworkObject)}; method = type.GetMethod("GetWordCount", flag, null, args, null); app.RegisterCLRMethodRedirection(method, GetWordCount_17); args = new Type[]{}; method = type.GetMethod("GetLocalAuthorityMask", flag, null, args, null); app.RegisterCLRMethodRedirection(method, GetLocalAuthorityMask_18); args = new Type[]{typeof(Fusion.PlayerRef)}; method = type.GetMethod("AssignInputAuthority", flag, null, args, null); app.RegisterCLRMethodRedirection(method, AssignInputAuthority_19); args = new Type[]{}; method = type.GetMethod("RequestStateAuthority", flag, null, args, null); app.RegisterCLRMethodRedirection(method, RequestStateAuthority_20); args = new Type[]{}; method = type.GetMethod("ReleaseStateAuthority", flag, null, args, null); app.RegisterCLRMethodRedirection(method, ReleaseStateAuthority_21); args = new Type[]{}; method = type.GetMethod("RemoveInputAuthority", flag, null, args, null); app.RegisterCLRMethodRedirection(method, RemoveInputAuthority_22); args = new Type[]{typeof(Fusion.NetworkObject)}; method = type.GetMethod("op_Implicit", flag, null, args, null); app.RegisterCLRMethodRedirection(method, op_Implicit_23); args = new Type[]{typeof(Fusion.PlayerRef), typeof(System.Boolean)}; method = type.GetMethod("SetPlayerAlwaysInterested", flag, null, args, null); app.RegisterCLRMethodRedirection(method, SetPlayerAlwaysInterested_24); args = new Type[]{typeof(Fusion.NetworkObject)}; method = type.GetMethod("CopyStateFrom", flag, null, args, null); app.RegisterCLRMethodRedirection(method, CopyStateFrom_25); args = new Type[]{typeof(Fusion.NetworkObjectHeaderPtr)}; method = type.GetMethod("CopyStateFrom", flag, null, args, null); app.RegisterCLRMethodRedirection(method, CopyStateFrom_26); args = new Type[]{typeof(Fusion.NetworkObject)}; method = type.GetMethod("NetworkWrap", flag, null, args, null); app.RegisterCLRMethodRedirection(method, NetworkWrap_27); args = new Type[]{typeof(Fusion.NetworkRunner), typeof(Fusion.NetworkId), typeof(Fusion.NetworkObject).MakeByRefType()}; method = type.GetMethod("NetworkUnwrap", flag, null, args, null); app.RegisterCLRMethodRedirection(method, NetworkUnwrap_28); field = type.GetField("IsResume", flag); app.RegisterCLRFieldGetter(field, get_IsResume_0); app.RegisterCLRFieldSetter(field, set_IsResume_0); app.RegisterCLRFieldBinding(field, CopyToStack_IsResume_0, AssignFromStack_IsResume_0); field = type.GetField("SortKey", flag); app.RegisterCLRFieldGetter(field, get_SortKey_1); app.RegisterCLRFieldSetter(field, set_SortKey_1); app.RegisterCLRFieldBinding(field, CopyToStack_SortKey_1, AssignFromStack_SortKey_1); field = type.GetField("PriorityCallback", flag); app.RegisterCLRFieldGetter(field, get_PriorityCallback_2); app.RegisterCLRFieldSetter(field, set_PriorityCallback_2); app.RegisterCLRFieldBinding(field, CopyToStack_PriorityCallback_2, AssignFromStack_PriorityCallback_2); field = type.GetField("Flags", flag); app.RegisterCLRFieldGetter(field, get_Flags_3); app.RegisterCLRFieldSetter(field, set_Flags_3); app.RegisterCLRFieldBinding(field, CopyToStack_Flags_3, AssignFromStack_Flags_3); field = type.GetField("NetworkTypeId", flag); app.RegisterCLRFieldGetter(field, get_NetworkTypeId_4); app.RegisterCLRFieldSetter(field, set_NetworkTypeId_4); app.RegisterCLRFieldBinding(field, CopyToStack_NetworkTypeId_4, AssignFromStack_NetworkTypeId_4); field = type.GetField("NestedObjects", flag); app.RegisterCLRFieldGetter(field, get_NestedObjects_5); app.RegisterCLRFieldSetter(field, set_NestedObjects_5); app.RegisterCLRFieldBinding(field, CopyToStack_NestedObjects_5, AssignFromStack_NestedObjects_5); field = type.GetField("NetworkedBehaviours", flag); app.RegisterCLRFieldGetter(field, get_NetworkedBehaviours_6); app.RegisterCLRFieldSetter(field, set_NetworkedBehaviours_6); app.RegisterCLRFieldBinding(field, CopyToStack_NetworkedBehaviours_6, AssignFromStack_NetworkedBehaviours_6); app.RegisterCLRCreateDefaultInstance(type, () => new Fusion.NetworkObject()); app.RegisterCLRCreateArrayInstance(type, s => new Fusion.NetworkObject[s]); args = new Type[]{}; method = type.GetConstructor(flag, null, args, null); app.RegisterCLRMethodRedirection(method, Ctor_0); } static StackObject* get_Id_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.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).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_Runner_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.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).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.Runner; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_LastReceiveTick_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.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).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.LastReceiveTick; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_Name_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.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).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.Name; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_IsValid_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.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).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.IsValid; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* get_IsInSimulation_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.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).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.IsInSimulation; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* get_HasInputAuthority_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.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).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_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.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).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_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.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).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_RenderTimeframe_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.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).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.RenderTimeframe; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_RenderSource_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); Fusion.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).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.RenderSource; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* set_RenderSource_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.RenderSource @value = (Fusion.RenderSource)typeof(Fusion.RenderSource).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, 2); Fusion.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.RenderSource = value; return __ret; } static StackObject* get_RenderTime_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.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).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.RenderTime; __ret->ObjectType = ObjectTypes.Float; *(float*)&__ret->Value = result_of_this_method; return __ret + 1; } static StackObject* get_InputAuthority_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); Fusion.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).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.InputAuthority; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_StateAuthority_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.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).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.StateAuthority; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_IsSpawnable_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); Fusion.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).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.IsSpawnable; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* set_IsSpawnable_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 @value = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); Fusion.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.IsSpawnable = value; return __ret; } static StackObject* GetWordCount_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.NetworkObject @obj = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).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.NetworkObject.GetWordCount(@obj); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method; return __ret + 1; } static StackObject* GetLocalAuthorityMask_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.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).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* AssignInputAuthority_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, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); 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, 2); Fusion.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.AssignInputAuthority(@player); return __ret; } static StackObject* RequestStateAuthority_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, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); Fusion.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.RequestStateAuthority(); return __ret; } static StackObject* ReleaseStateAuthority_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, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); Fusion.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.ReleaseStateAuthority(); return __ret; } static StackObject* RemoveInputAuthority_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, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); Fusion.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.RemoveInputAuthority(); return __ret; } 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.NetworkObject @obj = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).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.NetworkId)obj; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* SetPlayerAlwaysInterested_24(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 @alwaysInterested = 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.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.SetPlayerAlwaysInterested(@player, @alwaysInterested); return __ret; } static StackObject* CopyStateFrom_25(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.NetworkObject @source = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).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.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).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* CopyStateFrom_26(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.NetworkObjectHeaderPtr @source = (Fusion.NetworkObjectHeaderPtr)typeof(Fusion.NetworkObjectHeaderPtr).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.NetworkObject instance_of_this_method = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).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* NetworkWrap_27(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.NetworkObject @obj = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).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.NetworkObject.NetworkWrap(@obj); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* NetworkUnwrap_28(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.NetworkObject @result = (Fusion.NetworkObject)typeof(Fusion.NetworkObject).CheckCLRTypes(__intp.RetriveObject(ptr_of_this_method, __mStack), (CLR.Utils.Extensions.TypeFlags)0); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); Fusion.NetworkId @wrapper = (Fusion.NetworkId)typeof(Fusion.NetworkId).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); Fusion.NetworkRunner @runner = (Fusion.NetworkRunner)typeof(Fusion.NetworkRunner).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); Fusion.NetworkObject.NetworkUnwrap(@runner, @wrapper, ref @result); 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 = @result; 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] = @result; } else { var ___type = __domain.GetType(___obj.GetType()) as CLRType; ___type.SetFieldValue(ptr_of_this_method->ValueLow, ref ___obj, @result); } } 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] = @result; } else { ((CLRType)___type).SetStaticFieldValue(ptr_of_this_method->ValueLow, @result); } } break; case ObjectTypes.ArrayReference: { var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as Fusion.NetworkObject[]; instance_of_arrayReference[ptr_of_this_method->ValueLow] = @result; } break; } __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); __intp.FreeStackValueType(ptr_of_this_method); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); __intp.Free(ptr_of_this_method); return __ret; } static object get_IsResume_0(ref object o) { return ((Fusion.NetworkObject)o).IsResume; } static StackObject* CopyToStack_IsResume_0(ref object o, ILIntepreter __intp, StackObject* __ret, AutoList __mStack) { var result_of_this_method = ((Fusion.NetworkObject)o).IsResume; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static void set_IsResume_0(ref object o, object v) { ((Fusion.NetworkObject)o).IsResume = (System.Boolean)v; } static StackObject* AssignFromStack_IsResume_0(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, AutoList __mStack) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; System.Boolean @IsResume = ptr_of_this_method->Value == 1; ((Fusion.NetworkObject)o).IsResume = @IsResume; return ptr_of_this_method; } static object get_SortKey_1(ref object o) { return ((Fusion.NetworkObject)o).SortKey; } static StackObject* CopyToStack_SortKey_1(ref object o, ILIntepreter __intp, StackObject* __ret, AutoList __mStack) { var result_of_this_method = ((Fusion.NetworkObject)o).SortKey; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = (int)result_of_this_method; return __ret + 1; } static void set_SortKey_1(ref object o, object v) { ((Fusion.NetworkObject)o).SortKey = (System.UInt32)v; } static StackObject* AssignFromStack_SortKey_1(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, AutoList __mStack) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; System.UInt32 @SortKey = (uint)ptr_of_this_method->Value; ((Fusion.NetworkObject)o).SortKey = @SortKey; return ptr_of_this_method; } static object get_PriorityCallback_2(ref object o) { return ((Fusion.NetworkObject)o).PriorityCallback; } static StackObject* CopyToStack_PriorityCallback_2(ref object o, ILIntepreter __intp, StackObject* __ret, AutoList __mStack) { var result_of_this_method = ((Fusion.NetworkObject)o).PriorityCallback; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static void set_PriorityCallback_2(ref object o, object v) { ((Fusion.NetworkObject)o).PriorityCallback = (Fusion.NetworkObject.PriorityLevelDelegate)v; } static StackObject* AssignFromStack_PriorityCallback_2(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, AutoList __mStack) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; Fusion.NetworkObject.PriorityLevelDelegate @PriorityCallback = (Fusion.NetworkObject.PriorityLevelDelegate)typeof(Fusion.NetworkObject.PriorityLevelDelegate).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)8); ((Fusion.NetworkObject)o).PriorityCallback = @PriorityCallback; return ptr_of_this_method; } static object get_Flags_3(ref object o) { return ((Fusion.NetworkObject)o).Flags; } static StackObject* CopyToStack_Flags_3(ref object o, ILIntepreter __intp, StackObject* __ret, AutoList __mStack) { var result_of_this_method = ((Fusion.NetworkObject)o).Flags; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static void set_Flags_3(ref object o, object v) { ((Fusion.NetworkObject)o).Flags = (Fusion.NetworkObjectFlags)v; } static StackObject* AssignFromStack_Flags_3(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, AutoList __mStack) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; Fusion.NetworkObjectFlags @Flags = (Fusion.NetworkObjectFlags)typeof(Fusion.NetworkObjectFlags).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)20); ((Fusion.NetworkObject)o).Flags = @Flags; return ptr_of_this_method; } static object get_NetworkTypeId_4(ref object o) { return ((Fusion.NetworkObject)o).NetworkTypeId; } static StackObject* CopyToStack_NetworkTypeId_4(ref object o, ILIntepreter __intp, StackObject* __ret, AutoList __mStack) { var result_of_this_method = ((Fusion.NetworkObject)o).NetworkTypeId; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static void set_NetworkTypeId_4(ref object o, object v) { ((Fusion.NetworkObject)o).NetworkTypeId = (Fusion.NetworkObjectTypeId)v; } static StackObject* AssignFromStack_NetworkTypeId_4(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, AutoList __mStack) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; Fusion.NetworkObjectTypeId @NetworkTypeId = (Fusion.NetworkObjectTypeId)typeof(Fusion.NetworkObjectTypeId).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16); ((Fusion.NetworkObject)o).NetworkTypeId = @NetworkTypeId; return ptr_of_this_method; } static object get_NestedObjects_5(ref object o) { return ((Fusion.NetworkObject)o).NestedObjects; } static StackObject* CopyToStack_NestedObjects_5(ref object o, ILIntepreter __intp, StackObject* __ret, AutoList __mStack) { var result_of_this_method = ((Fusion.NetworkObject)o).NestedObjects; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static void set_NestedObjects_5(ref object o, object v) { ((Fusion.NetworkObject)o).NestedObjects = (Fusion.NetworkObject[])v; } static StackObject* AssignFromStack_NestedObjects_5(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, AutoList __mStack) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; Fusion.NetworkObject[] @NestedObjects = (Fusion.NetworkObject[])typeof(Fusion.NetworkObject[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); ((Fusion.NetworkObject)o).NestedObjects = @NestedObjects; return ptr_of_this_method; } static object get_NetworkedBehaviours_6(ref object o) { return ((Fusion.NetworkObject)o).NetworkedBehaviours; } static StackObject* CopyToStack_NetworkedBehaviours_6(ref object o, ILIntepreter __intp, StackObject* __ret, AutoList __mStack) { var result_of_this_method = ((Fusion.NetworkObject)o).NetworkedBehaviours; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static void set_NetworkedBehaviours_6(ref object o, object v) { ((Fusion.NetworkObject)o).NetworkedBehaviours = (Fusion.NetworkBehaviour[])v; } static StackObject* AssignFromStack_NetworkedBehaviours_6(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, AutoList __mStack) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; Fusion.NetworkBehaviour[] @NetworkedBehaviours = (Fusion.NetworkBehaviour[])typeof(Fusion.NetworkBehaviour[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); ((Fusion.NetworkObject)o).NetworkedBehaviours = @NetworkedBehaviours; 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.NetworkObject(); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } } }