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_NetworkRunnerVisibilityExtensions_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.NetworkRunnerVisibilityExtensions); args = new Type[]{}; method = type.GetMethod("RetryRefreshCommonLinks", flag, null, args, null); app.RegisterCLRMethodRedirection(method, RetryRefreshCommonLinks_0); args = new Type[]{typeof(Fusion.NetworkRunner)}; method = type.GetMethod("EnableVisibilityExtension", flag, null, args, null); app.RegisterCLRMethodRedirection(method, EnableVisibilityExtension_1); args = new Type[]{typeof(Fusion.NetworkRunner)}; method = type.GetMethod("DisableVisibilityExtension", flag, null, args, null); app.RegisterCLRMethodRedirection(method, DisableVisibilityExtension_2); args = new Type[]{typeof(Fusion.NetworkRunner)}; method = type.GetMethod("HasVisibilityEnabled", flag, null, args, null); app.RegisterCLRMethodRedirection(method, HasVisibilityEnabled_3); args = new Type[]{typeof(Fusion.NetworkRunner)}; method = type.GetMethod("GetVisible", flag, null, args, null); app.RegisterCLRMethodRedirection(method, GetVisible_4); args = new Type[]{typeof(Fusion.NetworkRunner), typeof(System.Boolean)}; method = type.GetMethod("SetVisible", flag, null, args, null); app.RegisterCLRMethodRedirection(method, SetVisible_5); args = new Type[]{typeof(Fusion.NetworkRunner), typeof(UnityEngine.GameObject)}; method = type.GetMethod("AddVisibilityNodes", flag, null, args, null); app.RegisterCLRMethodRedirection(method, AddVisibilityNodes_6); args = new Type[]{typeof(Fusion.RunnerVisibilityLink)}; method = type.GetMethod("UnregisterNode", flag, null, args, null); app.RegisterCLRMethodRedirection(method, UnregisterNode_7); } static StackObject* RetryRefreshCommonLinks_0(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* __ret = ILIntepreter.Minus(__esp, 0); Fusion.NetworkRunnerVisibilityExtensions.RetryRefreshCommonLinks(); return __ret; } static StackObject* EnableVisibilityExtension_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.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); Fusion.NetworkRunnerVisibilityExtensions.EnableVisibilityExtension(@runner); return __ret; } static StackObject* DisableVisibilityExtension_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.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); Fusion.NetworkRunnerVisibilityExtensions.DisableVisibilityExtension(@runner); return __ret; } static StackObject* HasVisibilityEnabled_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.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.NetworkRunnerVisibilityExtensions.HasVisibilityEnabled(@runner); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* GetVisible_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.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.NetworkRunnerVisibilityExtensions.GetVisible(@runner); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* SetVisible_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); System.Boolean @isVisibile = 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); Fusion.NetworkRunnerVisibilityExtensions.SetVisible(@runner, @isVisibile); return __ret; } static StackObject* AddVisibilityNodes_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.GameObject @go = (UnityEngine.GameObject)typeof(UnityEngine.GameObject).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); Fusion.NetworkRunnerVisibilityExtensions.AddVisibilityNodes(@runner, @go); return __ret; } static StackObject* UnregisterNode_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.RunnerVisibilityLink @link = (Fusion.RunnerVisibilityLink)typeof(Fusion.RunnerVisibilityLink).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); Fusion.NetworkRunnerVisibilityExtensions.UnregisterNode(@link); return __ret; } } }