| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 | using System;using System.Collections.Generic;using System.Linq;using System.Reflection;using System.Runtime.InteropServices;using ILRuntime.CLR.TypeSystem;using ILRuntime.CLR.Method;using ILRuntime.Runtime.Enviorment;using ILRuntime.Runtime.Intepreter;using ILRuntime.Runtime.Stack;using ILRuntime.Reflection;using ILRuntime.CLR.Utils;namespace ILRuntime.Runtime.Generated{    unsafe class FairyGUI_UIConfig_Binding    {        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)        {            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;            FieldInfo field;            Type[] args;            Type type = typeof(FairyGUI.UIConfig);            field = type.GetField("modalLayerColor", flag);            app.RegisterCLRFieldGetter(field, get_modalLayerColor_0);            app.RegisterCLRFieldSetter(field, set_modalLayerColor_0);            app.RegisterCLRFieldBinding(field, CopyToStack_modalLayerColor_0, AssignFromStack_modalLayerColor_0);            field = type.GetField("buttonSound", flag);            app.RegisterCLRFieldGetter(field, get_buttonSound_1);            app.RegisterCLRFieldSetter(field, set_buttonSound_1);            app.RegisterCLRFieldBinding(field, CopyToStack_buttonSound_1, AssignFromStack_buttonSound_1);            field = type.GetField("defaultFont", flag);            app.RegisterCLRFieldGetter(field, get_defaultFont_2);            app.RegisterCLRFieldSetter(field, set_defaultFont_2);            app.RegisterCLRFieldBinding(field, CopyToStack_defaultFont_2, AssignFromStack_defaultFont_2);        }        static object get_modalLayerColor_0(ref object o)        {            return FairyGUI.UIConfig.modalLayerColor;        }        static StackObject* CopyToStack_modalLayerColor_0(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)        {            var result_of_this_method = FairyGUI.UIConfig.modalLayerColor;            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);        }        static void set_modalLayerColor_0(ref object o, object v)        {            FairyGUI.UIConfig.modalLayerColor = (UnityEngine.Color)v;        }        static StackObject* AssignFromStack_modalLayerColor_0(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)        {            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;            UnityEngine.Color @modalLayerColor = (UnityEngine.Color)typeof(UnityEngine.Color).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));            FairyGUI.UIConfig.modalLayerColor = @modalLayerColor;            return ptr_of_this_method;        }        static object get_buttonSound_1(ref object o)        {            return FairyGUI.UIConfig.buttonSound;        }        static StackObject* CopyToStack_buttonSound_1(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)        {            var result_of_this_method = FairyGUI.UIConfig.buttonSound;            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);        }        static void set_buttonSound_1(ref object o, object v)        {            FairyGUI.UIConfig.buttonSound = (FairyGUI.NAudioClip)v;        }        static StackObject* AssignFromStack_buttonSound_1(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)        {            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;            FairyGUI.NAudioClip @buttonSound = (FairyGUI.NAudioClip)typeof(FairyGUI.NAudioClip).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));            FairyGUI.UIConfig.buttonSound = @buttonSound;            return ptr_of_this_method;        }        static object get_defaultFont_2(ref object o)        {            return FairyGUI.UIConfig.defaultFont;        }        static StackObject* CopyToStack_defaultFont_2(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)        {            var result_of_this_method = FairyGUI.UIConfig.defaultFont;            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);        }        static void set_defaultFont_2(ref object o, object v)        {            FairyGUI.UIConfig.defaultFont = (System.String)v;        }        static StackObject* AssignFromStack_defaultFont_2(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)        {            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;            System.String @defaultFont = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));            FairyGUI.UIConfig.defaultFont = @defaultFont;            return ptr_of_this_method;        }    }}
 |