FairyGUI_TextFormat_Binding.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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_TextFormat_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.TextFormat);
  23. field = type.GetField("size", flag);
  24. app.RegisterCLRFieldGetter(field, get_size_0);
  25. app.RegisterCLRFieldSetter(field, set_size_0);
  26. app.RegisterCLRFieldBinding(field, CopyToStack_size_0, AssignFromStack_size_0);
  27. field = type.GetField("font", flag);
  28. app.RegisterCLRFieldGetter(field, get_font_1);
  29. app.RegisterCLRFieldSetter(field, set_font_1);
  30. app.RegisterCLRFieldBinding(field, CopyToStack_font_1, AssignFromStack_font_1);
  31. }
  32. static object get_size_0(ref object o)
  33. {
  34. return ((FairyGUI.TextFormat)o).size;
  35. }
  36. static StackObject* CopyToStack_size_0(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
  37. {
  38. var result_of_this_method = ((FairyGUI.TextFormat)o).size;
  39. __ret->ObjectType = ObjectTypes.Integer;
  40. __ret->Value = result_of_this_method;
  41. return __ret + 1;
  42. }
  43. static void set_size_0(ref object o, object v)
  44. {
  45. ((FairyGUI.TextFormat)o).size = (System.Int32)v;
  46. }
  47. static StackObject* AssignFromStack_size_0(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
  48. {
  49. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  50. System.Int32 @size = ptr_of_this_method->Value;
  51. ((FairyGUI.TextFormat)o).size = @size;
  52. return ptr_of_this_method;
  53. }
  54. static object get_font_1(ref object o)
  55. {
  56. return ((FairyGUI.TextFormat)o).font;
  57. }
  58. static StackObject* CopyToStack_font_1(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
  59. {
  60. var result_of_this_method = ((FairyGUI.TextFormat)o).font;
  61. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  62. }
  63. static void set_font_1(ref object o, object v)
  64. {
  65. ((FairyGUI.TextFormat)o).font = (System.String)v;
  66. }
  67. static StackObject* AssignFromStack_font_1(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
  68. {
  69. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  70. System.String @font = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  71. ((FairyGUI.TextFormat)o).font = @font;
  72. return ptr_of_this_method;
  73. }
  74. }
  75. }