FairyGUI_GTweener_Binding.cs 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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_GTweener_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.GTweener);
  23. args = new Type[]{typeof(FairyGUI.GTweenCallback)};
  24. method = type.GetMethod("OnComplete", flag, null, args, null);
  25. app.RegisterCLRMethodRedirection(method, OnComplete_0);
  26. args = new Type[]{typeof(FairyGUI.GTweenCallback)};
  27. method = type.GetMethod("OnUpdate", flag, null, args, null);
  28. app.RegisterCLRMethodRedirection(method, OnUpdate_1);
  29. args = new Type[]{typeof(System.Boolean)};
  30. method = type.GetMethod("Kill", flag, null, args, null);
  31. app.RegisterCLRMethodRedirection(method, Kill_2);
  32. args = new Type[]{typeof(System.Object)};
  33. method = type.GetMethod("SetTarget", flag, null, args, null);
  34. app.RegisterCLRMethodRedirection(method, SetTarget_3);
  35. args = new Type[]{typeof(FairyGUI.GTweenCallback1)};
  36. method = type.GetMethod("OnUpdate", flag, null, args, null);
  37. app.RegisterCLRMethodRedirection(method, OnUpdate_4);
  38. args = new Type[]{};
  39. method = type.GetMethod("get_value", flag, null, args, null);
  40. app.RegisterCLRMethodRedirection(method, get_value_5);
  41. }
  42. static StackObject* OnComplete_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  43. {
  44. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  45. StackObject* ptr_of_this_method;
  46. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  47. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  48. FairyGUI.GTweenCallback @callback = (FairyGUI.GTweenCallback)typeof(FairyGUI.GTweenCallback).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  49. __intp.Free(ptr_of_this_method);
  50. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  51. FairyGUI.GTweener instance_of_this_method = (FairyGUI.GTweener)typeof(FairyGUI.GTweener).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  52. __intp.Free(ptr_of_this_method);
  53. var result_of_this_method = instance_of_this_method.OnComplete(@callback);
  54. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  55. }
  56. static StackObject* OnUpdate_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  57. {
  58. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  59. StackObject* ptr_of_this_method;
  60. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  61. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  62. FairyGUI.GTweenCallback @callback = (FairyGUI.GTweenCallback)typeof(FairyGUI.GTweenCallback).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  63. __intp.Free(ptr_of_this_method);
  64. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  65. FairyGUI.GTweener instance_of_this_method = (FairyGUI.GTweener)typeof(FairyGUI.GTweener).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  66. __intp.Free(ptr_of_this_method);
  67. var result_of_this_method = instance_of_this_method.OnUpdate(@callback);
  68. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  69. }
  70. static StackObject* Kill_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  71. {
  72. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  73. StackObject* ptr_of_this_method;
  74. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  75. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  76. System.Boolean @complete = ptr_of_this_method->Value == 1;
  77. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  78. FairyGUI.GTweener instance_of_this_method = (FairyGUI.GTweener)typeof(FairyGUI.GTweener).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  79. __intp.Free(ptr_of_this_method);
  80. instance_of_this_method.Kill(@complete);
  81. return __ret;
  82. }
  83. static StackObject* SetTarget_3(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  84. {
  85. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  86. StackObject* ptr_of_this_method;
  87. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  88. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  89. System.Object @value = (System.Object)typeof(System.Object).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  90. __intp.Free(ptr_of_this_method);
  91. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  92. FairyGUI.GTweener instance_of_this_method = (FairyGUI.GTweener)typeof(FairyGUI.GTweener).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  93. __intp.Free(ptr_of_this_method);
  94. var result_of_this_method = instance_of_this_method.SetTarget(@value);
  95. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  96. }
  97. static StackObject* OnUpdate_4(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  98. {
  99. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  100. StackObject* ptr_of_this_method;
  101. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  102. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  103. FairyGUI.GTweenCallback1 @callback = (FairyGUI.GTweenCallback1)typeof(FairyGUI.GTweenCallback1).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  104. __intp.Free(ptr_of_this_method);
  105. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  106. FairyGUI.GTweener instance_of_this_method = (FairyGUI.GTweener)typeof(FairyGUI.GTweener).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  107. __intp.Free(ptr_of_this_method);
  108. var result_of_this_method = instance_of_this_method.OnUpdate(@callback);
  109. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  110. }
  111. static StackObject* get_value_5(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  112. {
  113. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  114. StackObject* ptr_of_this_method;
  115. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  116. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  117. FairyGUI.GTweener instance_of_this_method = (FairyGUI.GTweener)typeof(FairyGUI.GTweener).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  118. __intp.Free(ptr_of_this_method);
  119. var result_of_this_method = instance_of_this_method.value;
  120. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  121. }
  122. }
  123. }