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_GameServices_Runtime_TextMessage_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(Phantom.XRMOD.GameServices.Runtime.TextMessage); args = new Type[]{}; method = type.GetMethod("get_SenderPlayerId", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_SenderPlayerId_0); args = new Type[]{}; method = type.GetMethod("get_SenderDisplayName", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_SenderDisplayName_1); args = new Type[]{}; method = type.GetMethod("get_RecipientPlayerId", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_RecipientPlayerId_2); args = new Type[]{}; method = type.GetMethod("get_ChannelName", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_ChannelName_3); args = new Type[]{}; method = type.GetMethod("get_MessageText", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_MessageText_4); args = new Type[]{}; method = type.GetMethod("get_FromSelf", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_FromSelf_5); args = new Type[]{}; method = type.GetMethod("get_ReceivedTime", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_ReceivedTime_6); args = new Type[]{}; method = type.GetMethod("get_Language", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_Language_7); args = new Type[]{}; method = type.GetMethod("get_MessageId", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_MessageId_8); args = new Type[]{}; method = type.GetMethod("get_IsRead", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_IsRead_9); args = new Type[]{}; method = type.GetMethod("get_IsTranscribedMessage", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_IsTranscribedMessage_10); args = new Type[]{typeof(System.Nullable)}; method = type.GetMethod("SetMessageAsReadAsync", flag, null, args, null); app.RegisterCLRMethodRedirection(method, SetMessageAsReadAsync_11); app.RegisterCLRCreateDefaultInstance(type, () => new Phantom.XRMOD.GameServices.Runtime.TextMessage()); app.RegisterCLRCreateArrayInstance(type, s => new Phantom.XRMOD.GameServices.Runtime.TextMessage[s]); args = new Type[]{}; method = type.GetConstructor(flag, null, args, null); app.RegisterCLRMethodRedirection(method, Ctor_0); } static StackObject* get_SenderPlayerId_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.GameServices.Runtime.TextMessage instance_of_this_method = (Phantom.XRMOD.GameServices.Runtime.TextMessage)typeof(Phantom.XRMOD.GameServices.Runtime.TextMessage).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.SenderPlayerId; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_SenderDisplayName_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.GameServices.Runtime.TextMessage instance_of_this_method = (Phantom.XRMOD.GameServices.Runtime.TextMessage)typeof(Phantom.XRMOD.GameServices.Runtime.TextMessage).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.SenderDisplayName; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_RecipientPlayerId_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.GameServices.Runtime.TextMessage instance_of_this_method = (Phantom.XRMOD.GameServices.Runtime.TextMessage)typeof(Phantom.XRMOD.GameServices.Runtime.TextMessage).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.RecipientPlayerId; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_ChannelName_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.GameServices.Runtime.TextMessage instance_of_this_method = (Phantom.XRMOD.GameServices.Runtime.TextMessage)typeof(Phantom.XRMOD.GameServices.Runtime.TextMessage).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.ChannelName; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_MessageText_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.GameServices.Runtime.TextMessage instance_of_this_method = (Phantom.XRMOD.GameServices.Runtime.TextMessage)typeof(Phantom.XRMOD.GameServices.Runtime.TextMessage).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.MessageText; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_FromSelf_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); Phantom.XRMOD.GameServices.Runtime.TextMessage instance_of_this_method = (Phantom.XRMOD.GameServices.Runtime.TextMessage)typeof(Phantom.XRMOD.GameServices.Runtime.TextMessage).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.FromSelf; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* get_ReceivedTime_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); Phantom.XRMOD.GameServices.Runtime.TextMessage instance_of_this_method = (Phantom.XRMOD.GameServices.Runtime.TextMessage)typeof(Phantom.XRMOD.GameServices.Runtime.TextMessage).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.ReceivedTime; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_Language_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); Phantom.XRMOD.GameServices.Runtime.TextMessage instance_of_this_method = (Phantom.XRMOD.GameServices.Runtime.TextMessage)typeof(Phantom.XRMOD.GameServices.Runtime.TextMessage).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.Language; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_MessageId_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); Phantom.XRMOD.GameServices.Runtime.TextMessage instance_of_this_method = (Phantom.XRMOD.GameServices.Runtime.TextMessage)typeof(Phantom.XRMOD.GameServices.Runtime.TextMessage).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.MessageId; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_IsRead_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); Phantom.XRMOD.GameServices.Runtime.TextMessage instance_of_this_method = (Phantom.XRMOD.GameServices.Runtime.TextMessage)typeof(Phantom.XRMOD.GameServices.Runtime.TextMessage).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.IsRead; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* get_IsTranscribedMessage_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); Phantom.XRMOD.GameServices.Runtime.TextMessage instance_of_this_method = (Phantom.XRMOD.GameServices.Runtime.TextMessage)typeof(Phantom.XRMOD.GameServices.Runtime.TextMessage).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.IsTranscribedMessage; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* SetMessageAsReadAsync_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.Nullable @_time = (System.Nullable)typeof(System.Nullable).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); Phantom.XRMOD.GameServices.Runtime.TextMessage instance_of_this_method = (Phantom.XRMOD.GameServices.Runtime.TextMessage)typeof(Phantom.XRMOD.GameServices.Runtime.TextMessage).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.SetMessageAsReadAsync(@_time); 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* 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.GameServices.Runtime.TextMessage(); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } } }