FairyGUI_GButton_Binding.cs 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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_GButton_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. MethodBase method;
  21. Type[] args;
  22. Type type = typeof(FairyGUI.GButton);
  23. args = new Type[]{typeof(System.Boolean)};
  24. method = type.GetMethod("set_selected", flag, null, args, null);
  25. app.RegisterCLRMethodRedirection(method, set_selected_0);
  26. args = new Type[]{typeof(System.String)};
  27. method = type.GetMethod("set_title", flag, null, args, null);
  28. app.RegisterCLRMethodRedirection(method, set_title_1);
  29. args = new Type[]{};
  30. method = type.GetMethod("get_selected", flag, null, args, null);
  31. app.RegisterCLRMethodRedirection(method, get_selected_2);
  32. args = new Type[]{};
  33. method = type.GetMethod("get_onChanged", flag, null, args, null);
  34. app.RegisterCLRMethodRedirection(method, get_onChanged_3);
  35. }
  36. static StackObject* set_selected_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  37. {
  38. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  39. StackObject* ptr_of_this_method;
  40. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  41. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  42. System.Boolean @value = ptr_of_this_method->Value == 1;
  43. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  44. FairyGUI.GButton instance_of_this_method = (FairyGUI.GButton)typeof(FairyGUI.GButton).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  45. __intp.Free(ptr_of_this_method);
  46. instance_of_this_method.selected = value;
  47. return __ret;
  48. }
  49. static StackObject* set_title_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  50. {
  51. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  52. StackObject* ptr_of_this_method;
  53. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  54. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  55. System.String @value = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  56. __intp.Free(ptr_of_this_method);
  57. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  58. FairyGUI.GButton instance_of_this_method = (FairyGUI.GButton)typeof(FairyGUI.GButton).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  59. __intp.Free(ptr_of_this_method);
  60. instance_of_this_method.title = value;
  61. return __ret;
  62. }
  63. static StackObject* get_selected_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  64. {
  65. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  66. StackObject* ptr_of_this_method;
  67. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  68. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  69. FairyGUI.GButton instance_of_this_method = (FairyGUI.GButton)typeof(FairyGUI.GButton).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  70. __intp.Free(ptr_of_this_method);
  71. var result_of_this_method = instance_of_this_method.selected;
  72. __ret->ObjectType = ObjectTypes.Integer;
  73. __ret->Value = result_of_this_method ? 1 : 0;
  74. return __ret + 1;
  75. }
  76. static StackObject* get_onChanged_3(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  77. {
  78. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  79. StackObject* ptr_of_this_method;
  80. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  81. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  82. FairyGUI.GButton instance_of_this_method = (FairyGUI.GButton)typeof(FairyGUI.GButton).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  83. __intp.Free(ptr_of_this_method);
  84. var result_of_this_method = instance_of_this_method.onChanged;
  85. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  86. }
  87. }
  88. }