FairyGUI_GProgressBar_Binding.cs 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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_GProgressBar_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.GProgressBar);
  23. args = new Type[]{typeof(System.Double)};
  24. method = type.GetMethod("set_max", flag, null, args, null);
  25. app.RegisterCLRMethodRedirection(method, set_max_0);
  26. args = new Type[]{typeof(System.Double)};
  27. method = type.GetMethod("set_value", flag, null, args, null);
  28. app.RegisterCLRMethodRedirection(method, set_value_1);
  29. args = new Type[]{};
  30. method = type.GetMethod("get_max", flag, null, args, null);
  31. app.RegisterCLRMethodRedirection(method, get_max_2);
  32. args = new Type[]{};
  33. method = type.GetMethod("get_value", flag, null, args, null);
  34. app.RegisterCLRMethodRedirection(method, get_value_3);
  35. args = new Type[]{typeof(System.Double), typeof(System.Single)};
  36. method = type.GetMethod("TweenValue", flag, null, args, null);
  37. app.RegisterCLRMethodRedirection(method, TweenValue_4);
  38. }
  39. static StackObject* set_max_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  40. {
  41. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  42. StackObject* ptr_of_this_method;
  43. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  44. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  45. System.Double @value = *(double*)&ptr_of_this_method->Value;
  46. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  47. FairyGUI.GProgressBar instance_of_this_method = (FairyGUI.GProgressBar)typeof(FairyGUI.GProgressBar).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  48. __intp.Free(ptr_of_this_method);
  49. instance_of_this_method.max = value;
  50. return __ret;
  51. }
  52. static StackObject* set_value_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  53. {
  54. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  55. StackObject* ptr_of_this_method;
  56. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  57. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  58. System.Double @value = *(double*)&ptr_of_this_method->Value;
  59. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  60. FairyGUI.GProgressBar instance_of_this_method = (FairyGUI.GProgressBar)typeof(FairyGUI.GProgressBar).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  61. __intp.Free(ptr_of_this_method);
  62. instance_of_this_method.value = value;
  63. return __ret;
  64. }
  65. static StackObject* get_max_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  66. {
  67. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  68. StackObject* ptr_of_this_method;
  69. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  70. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  71. FairyGUI.GProgressBar instance_of_this_method = (FairyGUI.GProgressBar)typeof(FairyGUI.GProgressBar).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  72. __intp.Free(ptr_of_this_method);
  73. var result_of_this_method = instance_of_this_method.max;
  74. __ret->ObjectType = ObjectTypes.Double;
  75. *(double*)&__ret->Value = result_of_this_method;
  76. return __ret + 1;
  77. }
  78. static StackObject* get_value_3(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  79. {
  80. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  81. StackObject* ptr_of_this_method;
  82. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  83. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  84. FairyGUI.GProgressBar instance_of_this_method = (FairyGUI.GProgressBar)typeof(FairyGUI.GProgressBar).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  85. __intp.Free(ptr_of_this_method);
  86. var result_of_this_method = instance_of_this_method.value;
  87. __ret->ObjectType = ObjectTypes.Double;
  88. *(double*)&__ret->Value = result_of_this_method;
  89. return __ret + 1;
  90. }
  91. static StackObject* TweenValue_4(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  92. {
  93. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  94. StackObject* ptr_of_this_method;
  95. StackObject* __ret = ILIntepreter.Minus(__esp, 3);
  96. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  97. System.Single @duration = *(float*)&ptr_of_this_method->Value;
  98. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  99. System.Double @value = *(double*)&ptr_of_this_method->Value;
  100. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  101. FairyGUI.GProgressBar instance_of_this_method = (FairyGUI.GProgressBar)typeof(FairyGUI.GProgressBar).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  102. __intp.Free(ptr_of_this_method);
  103. var result_of_this_method = instance_of_this_method.TweenValue(@value, @duration);
  104. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  105. }
  106. }
  107. }