FairyGUI_UIConfig_Binding.cs 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Reflection;
  5. using System.Runtime.InteropServices;
  6. using ILRuntime.CLR.TypeSystem;
  7. using ILRuntime.CLR.Method;
  8. using ILRuntime.Runtime.Enviorment;
  9. using ILRuntime.Runtime.Intepreter;
  10. using ILRuntime.Runtime.Stack;
  11. using ILRuntime.Reflection;
  12. using ILRuntime.CLR.Utils;
  13. namespace ILRuntime.Runtime.Generated
  14. {
  15. unsafe class FairyGUI_UIConfig_Binding
  16. {
  17. public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
  18. {
  19. BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
  20. FieldInfo field;
  21. Type[] args;
  22. Type type = typeof(FairyGUI.UIConfig);
  23. field = type.GetField("modalLayerColor", flag);
  24. app.RegisterCLRFieldGetter(field, get_modalLayerColor_0);
  25. app.RegisterCLRFieldSetter(field, set_modalLayerColor_0);
  26. app.RegisterCLRFieldBinding(field, CopyToStack_modalLayerColor_0, AssignFromStack_modalLayerColor_0);
  27. field = type.GetField("buttonSound", flag);
  28. app.RegisterCLRFieldGetter(field, get_buttonSound_1);
  29. app.RegisterCLRFieldSetter(field, set_buttonSound_1);
  30. app.RegisterCLRFieldBinding(field, CopyToStack_buttonSound_1, AssignFromStack_buttonSound_1);
  31. field = type.GetField("defaultFont", flag);
  32. app.RegisterCLRFieldGetter(field, get_defaultFont_2);
  33. app.RegisterCLRFieldSetter(field, set_defaultFont_2);
  34. app.RegisterCLRFieldBinding(field, CopyToStack_defaultFont_2, AssignFromStack_defaultFont_2);
  35. }
  36. static object get_modalLayerColor_0(ref object o)
  37. {
  38. return FairyGUI.UIConfig.modalLayerColor;
  39. }
  40. static StackObject* CopyToStack_modalLayerColor_0(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
  41. {
  42. var result_of_this_method = FairyGUI.UIConfig.modalLayerColor;
  43. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  44. }
  45. static void set_modalLayerColor_0(ref object o, object v)
  46. {
  47. FairyGUI.UIConfig.modalLayerColor = (UnityEngine.Color)v;
  48. }
  49. static StackObject* AssignFromStack_modalLayerColor_0(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
  50. {
  51. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  52. UnityEngine.Color @modalLayerColor = (UnityEngine.Color)typeof(UnityEngine.Color).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  53. FairyGUI.UIConfig.modalLayerColor = @modalLayerColor;
  54. return ptr_of_this_method;
  55. }
  56. static object get_buttonSound_1(ref object o)
  57. {
  58. return FairyGUI.UIConfig.buttonSound;
  59. }
  60. static StackObject* CopyToStack_buttonSound_1(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
  61. {
  62. var result_of_this_method = FairyGUI.UIConfig.buttonSound;
  63. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  64. }
  65. static void set_buttonSound_1(ref object o, object v)
  66. {
  67. FairyGUI.UIConfig.buttonSound = (FairyGUI.NAudioClip)v;
  68. }
  69. static StackObject* AssignFromStack_buttonSound_1(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
  70. {
  71. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  72. FairyGUI.NAudioClip @buttonSound = (FairyGUI.NAudioClip)typeof(FairyGUI.NAudioClip).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  73. FairyGUI.UIConfig.buttonSound = @buttonSound;
  74. return ptr_of_this_method;
  75. }
  76. static object get_defaultFont_2(ref object o)
  77. {
  78. return FairyGUI.UIConfig.defaultFont;
  79. }
  80. static StackObject* CopyToStack_defaultFont_2(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
  81. {
  82. var result_of_this_method = FairyGUI.UIConfig.defaultFont;
  83. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  84. }
  85. static void set_defaultFont_2(ref object o, object v)
  86. {
  87. FairyGUI.UIConfig.defaultFont = (System.String)v;
  88. }
  89. static StackObject* AssignFromStack_defaultFont_2(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
  90. {
  91. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  92. System.String @defaultFont = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  93. FairyGUI.UIConfig.defaultFont = @defaultFont;
  94. return ptr_of_this_method;
  95. }
  96. }
  97. }