#if QUEST_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 Phantom_XRMOD_OpenXRMOD_Runtime_OpenXRPermissionHelper_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(Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper); args = new Type[]{}; method = type.GetMethod("get_IsScenePermissionGranted", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_IsScenePermissionGranted_0); args = new Type[]{}; method = type.GetMethod("get_IsSceneUnderstandingPermissionGranted", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_IsSceneUnderstandingPermissionGranted_1); args = new Type[]{}; method = type.GetMethod("get_IsHandTrackingPermissionGranted", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_IsHandTrackingPermissionGranted_2); args = new Type[]{}; method = type.GetMethod("get_IsEyeTrackingPermissionGranted", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_IsEyeTrackingPermissionGranted_3); args = new Type[]{}; method = type.GetMethod("get_IsEyeTrackingFinePermissionGranted", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_IsEyeTrackingFinePermissionGranted_4); args = new Type[]{typeof(System.String)}; method = type.GetMethod("CheckPermission", flag, null, args, null); app.RegisterCLRMethodRedirection(method, CheckPermission_5); args = new Type[]{typeof(System.String[])}; method = type.GetMethod("CheckPermissions", flag, null, args, null); app.RegisterCLRMethodRedirection(method, CheckPermissions_6); args = new Type[]{typeof(System.String)}; method = type.GetMethod("PermissionRequest", flag, null, args, null); app.RegisterCLRMethodRedirection(method, PermissionRequest_7); args = new Type[]{typeof(System.String[])}; method = type.GetMethod("PermissionsRequest", flag, null, args, null); app.RegisterCLRMethodRedirection(method, PermissionsRequest_8); field = type.GetField("k_DefaultPermissionId", flag); app.RegisterCLRFieldGetter(field, get_k_DefaultPermissionId_0); app.RegisterCLRFieldBinding(field, CopyToStack_k_DefaultPermissionId_0, null); field = type.GetField("k_ScenePermission", flag); app.RegisterCLRFieldGetter(field, get_k_ScenePermission_1); app.RegisterCLRFieldBinding(field, CopyToStack_k_ScenePermission_1, null); field = type.GetField("k_HandTrackingPermission", flag); app.RegisterCLRFieldGetter(field, get_k_HandTrackingPermission_2); app.RegisterCLRFieldBinding(field, CopyToStack_k_HandTrackingPermission_2, null); field = type.GetField("k_AvatarEyesPermission", flag); app.RegisterCLRFieldGetter(field, get_k_AvatarEyesPermission_3); app.RegisterCLRFieldBinding(field, CopyToStack_k_AvatarEyesPermission_3, null); field = type.GetField("k_EyeGazeFinePermisson", flag); app.RegisterCLRFieldGetter(field, get_k_EyeGazeFinePermisson_4); app.RegisterCLRFieldBinding(field, CopyToStack_k_EyeGazeFinePermisson_4, null); field = type.GetField("PermissionDenied", flag); app.RegisterCLRFieldGetter(field, get_PermissionDenied_5); app.RegisterCLRFieldSetter(field, set_PermissionDenied_5); app.RegisterCLRFieldBinding(field, CopyToStack_PermissionDenied_5, AssignFromStack_PermissionDenied_5); field = type.GetField("PermissionGranted", flag); app.RegisterCLRFieldGetter(field, get_PermissionGranted_6); app.RegisterCLRFieldSetter(field, set_PermissionGranted_6); app.RegisterCLRFieldBinding(field, CopyToStack_PermissionGranted_6, AssignFromStack_PermissionGranted_6); app.RegisterCLRCreateDefaultInstance(type, () => new Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper()); app.RegisterCLRCreateArrayInstance(type, s => new Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper[s]); args = new Type[]{}; method = type.GetConstructor(flag, null, args, null); app.RegisterCLRMethodRedirection(method, Ctor_0); } static StackObject* get_IsScenePermissionGranted_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); Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper instance_of_this_method = (Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper)typeof(Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper).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.IsScenePermissionGranted; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* get_IsSceneUnderstandingPermissionGranted_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); Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper instance_of_this_method = (Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper)typeof(Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper).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.IsSceneUnderstandingPermissionGranted; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* get_IsHandTrackingPermissionGranted_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); Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper instance_of_this_method = (Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper)typeof(Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper).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.IsHandTrackingPermissionGranted; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* get_IsEyeTrackingPermissionGranted_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); Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper instance_of_this_method = (Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper)typeof(Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper).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.IsEyeTrackingPermissionGranted; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* get_IsEyeTrackingFinePermissionGranted_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); Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper instance_of_this_method = (Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper)typeof(Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper).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.IsEyeTrackingFinePermissionGranted; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* CheckPermission_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.String @_permissionName = (System.String)typeof(System.String).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); Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper instance_of_this_method = (Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper)typeof(Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.CheckPermission(@_permissionName); return __ret; } static StackObject* CheckPermissions_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); System.String[] @_permissionNames = (System.String[])typeof(System.String[]).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); Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper instance_of_this_method = (Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper)typeof(Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.CheckPermissions(@_permissionNames); return __ret; } static StackObject* PermissionRequest_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); System.String @_permissionName = (System.String)typeof(System.String).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); Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper instance_of_this_method = (Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper)typeof(Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.PermissionRequest(@_permissionName); return __ret; } static StackObject* PermissionsRequest_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); System.String[] @_permissionName = (System.String[])typeof(System.String[]).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); Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper instance_of_this_method = (Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper)typeof(Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); instance_of_this_method.PermissionsRequest(@_permissionName); return __ret; } static object get_k_DefaultPermissionId_0(ref object o) { return Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper.k_DefaultPermissionId; } static StackObject* CopyToStack_k_DefaultPermissionId_0(ref object o, ILIntepreter __intp, StackObject* __ret, AutoList __mStack) { var result_of_this_method = Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper.k_DefaultPermissionId; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static object get_k_ScenePermission_1(ref object o) { return Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper.k_ScenePermission; } static StackObject* CopyToStack_k_ScenePermission_1(ref object o, ILIntepreter __intp, StackObject* __ret, AutoList __mStack) { var result_of_this_method = Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper.k_ScenePermission; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static object get_k_HandTrackingPermission_2(ref object o) { return Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper.k_HandTrackingPermission; } static StackObject* CopyToStack_k_HandTrackingPermission_2(ref object o, ILIntepreter __intp, StackObject* __ret, AutoList __mStack) { var result_of_this_method = Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper.k_HandTrackingPermission; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static object get_k_AvatarEyesPermission_3(ref object o) { return Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper.k_AvatarEyesPermission; } static StackObject* CopyToStack_k_AvatarEyesPermission_3(ref object o, ILIntepreter __intp, StackObject* __ret, AutoList __mStack) { var result_of_this_method = Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper.k_AvatarEyesPermission; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static object get_k_EyeGazeFinePermisson_4(ref object o) { return Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper.k_EyeGazeFinePermisson; } static StackObject* CopyToStack_k_EyeGazeFinePermisson_4(ref object o, ILIntepreter __intp, StackObject* __ret, AutoList __mStack) { var result_of_this_method = Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper.k_EyeGazeFinePermisson; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static object get_PermissionDenied_5(ref object o) { return ((Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper)o).PermissionDenied; } static StackObject* CopyToStack_PermissionDenied_5(ref object o, ILIntepreter __intp, StackObject* __ret, AutoList __mStack) { var result_of_this_method = ((Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper)o).PermissionDenied; 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 void set_PermissionDenied_5(ref object o, object v) { ((Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper)o).PermissionDenied = (UnityEngine.Events.UnityEvent)v; } static StackObject* AssignFromStack_PermissionDenied_5(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, AutoList __mStack) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; UnityEngine.Events.UnityEvent @PermissionDenied = (UnityEngine.Events.UnityEvent)typeof(UnityEngine.Events.UnityEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); ((Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper)o).PermissionDenied = @PermissionDenied; return ptr_of_this_method; } static object get_PermissionGranted_6(ref object o) { return ((Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper)o).PermissionGranted; } static StackObject* CopyToStack_PermissionGranted_6(ref object o, ILIntepreter __intp, StackObject* __ret, AutoList __mStack) { var result_of_this_method = ((Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper)o).PermissionGranted; 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 void set_PermissionGranted_6(ref object o, object v) { ((Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper)o).PermissionGranted = (UnityEngine.Events.UnityEvent)v; } static StackObject* AssignFromStack_PermissionGranted_6(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, AutoList __mStack) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; UnityEngine.Events.UnityEvent @PermissionGranted = (UnityEngine.Events.UnityEvent)typeof(UnityEngine.Events.UnityEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); ((Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper)o).PermissionGranted = @PermissionGranted; 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 Phantom.XRMOD.OpenXRMOD.Runtime.OpenXRPermissionHelper(); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } } } #endif