FairyGUI_Transition_Binding.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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_Transition_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.Transition);
  23. args = new Type[]{typeof(System.Boolean)};
  24. method = type.GetMethod("set_ignoreEngineTimeScale", flag, null, args, null);
  25. app.RegisterCLRMethodRedirection(method, set_ignoreEngineTimeScale_0);
  26. args = new Type[]{typeof(System.Single)};
  27. method = type.GetMethod("set_timeScale", flag, null, args, null);
  28. app.RegisterCLRMethodRedirection(method, set_timeScale_1);
  29. args = new Type[]{typeof(FairyGUI.PlayCompleteCallback)};
  30. method = type.GetMethod("Play", flag, null, args, null);
  31. app.RegisterCLRMethodRedirection(method, Play_2);
  32. args = new Type[]{};
  33. method = type.GetMethod("get_playing", flag, null, args, null);
  34. app.RegisterCLRMethodRedirection(method, get_playing_3);
  35. args = new Type[]{typeof(System.Boolean)};
  36. method = type.GetMethod("SetPaused", flag, null, args, null);
  37. app.RegisterCLRMethodRedirection(method, SetPaused_4);
  38. args = new Type[]{};
  39. method = type.GetMethod("Stop", flag, null, args, null);
  40. app.RegisterCLRMethodRedirection(method, Stop_5);
  41. args = new Type[]{typeof(System.Boolean), typeof(System.Boolean)};
  42. method = type.GetMethod("Stop", flag, null, args, null);
  43. app.RegisterCLRMethodRedirection(method, Stop_6);
  44. args = new Type[]{typeof(System.String), typeof(FairyGUI.TransitionHook)};
  45. method = type.GetMethod("SetHook", flag, null, args, null);
  46. app.RegisterCLRMethodRedirection(method, SetHook_7);
  47. args = new Type[]{};
  48. method = type.GetMethod("Play", flag, null, args, null);
  49. app.RegisterCLRMethodRedirection(method, Play_8);
  50. }
  51. static StackObject* set_ignoreEngineTimeScale_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  52. {
  53. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  54. StackObject* ptr_of_this_method;
  55. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  56. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  57. System.Boolean @value = ptr_of_this_method->Value == 1;
  58. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  59. FairyGUI.Transition instance_of_this_method = (FairyGUI.Transition)typeof(FairyGUI.Transition).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  60. __intp.Free(ptr_of_this_method);
  61. instance_of_this_method.ignoreEngineTimeScale = value;
  62. return __ret;
  63. }
  64. static StackObject* set_timeScale_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  65. {
  66. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  67. StackObject* ptr_of_this_method;
  68. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  69. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  70. System.Single @value = *(float*)&ptr_of_this_method->Value;
  71. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  72. FairyGUI.Transition instance_of_this_method = (FairyGUI.Transition)typeof(FairyGUI.Transition).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  73. __intp.Free(ptr_of_this_method);
  74. instance_of_this_method.timeScale = value;
  75. return __ret;
  76. }
  77. static StackObject* Play_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  78. {
  79. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  80. StackObject* ptr_of_this_method;
  81. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  82. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  83. FairyGUI.PlayCompleteCallback @onComplete = (FairyGUI.PlayCompleteCallback)typeof(FairyGUI.PlayCompleteCallback).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  84. __intp.Free(ptr_of_this_method);
  85. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  86. FairyGUI.Transition instance_of_this_method = (FairyGUI.Transition)typeof(FairyGUI.Transition).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  87. __intp.Free(ptr_of_this_method);
  88. instance_of_this_method.Play(@onComplete);
  89. return __ret;
  90. }
  91. static StackObject* get_playing_3(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, 1);
  96. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  97. FairyGUI.Transition instance_of_this_method = (FairyGUI.Transition)typeof(FairyGUI.Transition).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  98. __intp.Free(ptr_of_this_method);
  99. var result_of_this_method = instance_of_this_method.playing;
  100. __ret->ObjectType = ObjectTypes.Integer;
  101. __ret->Value = result_of_this_method ? 1 : 0;
  102. return __ret + 1;
  103. }
  104. static StackObject* SetPaused_4(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  105. {
  106. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  107. StackObject* ptr_of_this_method;
  108. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  109. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  110. System.Boolean @paused = ptr_of_this_method->Value == 1;
  111. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  112. FairyGUI.Transition instance_of_this_method = (FairyGUI.Transition)typeof(FairyGUI.Transition).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  113. __intp.Free(ptr_of_this_method);
  114. instance_of_this_method.SetPaused(@paused);
  115. return __ret;
  116. }
  117. static StackObject* Stop_5(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  118. {
  119. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  120. StackObject* ptr_of_this_method;
  121. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  122. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  123. FairyGUI.Transition instance_of_this_method = (FairyGUI.Transition)typeof(FairyGUI.Transition).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  124. __intp.Free(ptr_of_this_method);
  125. instance_of_this_method.Stop();
  126. return __ret;
  127. }
  128. static StackObject* Stop_6(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  129. {
  130. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  131. StackObject* ptr_of_this_method;
  132. StackObject* __ret = ILIntepreter.Minus(__esp, 3);
  133. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  134. System.Boolean @processCallback = ptr_of_this_method->Value == 1;
  135. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  136. System.Boolean @setToComplete = ptr_of_this_method->Value == 1;
  137. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  138. FairyGUI.Transition instance_of_this_method = (FairyGUI.Transition)typeof(FairyGUI.Transition).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  139. __intp.Free(ptr_of_this_method);
  140. instance_of_this_method.Stop(@setToComplete, @processCallback);
  141. return __ret;
  142. }
  143. static StackObject* SetHook_7(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  144. {
  145. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  146. StackObject* ptr_of_this_method;
  147. StackObject* __ret = ILIntepreter.Minus(__esp, 3);
  148. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  149. FairyGUI.TransitionHook @callback = (FairyGUI.TransitionHook)typeof(FairyGUI.TransitionHook).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  150. __intp.Free(ptr_of_this_method);
  151. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  152. System.String @label = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  153. __intp.Free(ptr_of_this_method);
  154. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  155. FairyGUI.Transition instance_of_this_method = (FairyGUI.Transition)typeof(FairyGUI.Transition).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  156. __intp.Free(ptr_of_this_method);
  157. instance_of_this_method.SetHook(@label, @callback);
  158. return __ret;
  159. }
  160. static StackObject* Play_8(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  161. {
  162. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  163. StackObject* ptr_of_this_method;
  164. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  165. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  166. FairyGUI.Transition instance_of_this_method = (FairyGUI.Transition)typeof(FairyGUI.Transition).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  167. __intp.Free(ptr_of_this_method);
  168. instance_of_this_method.Play();
  169. return __ret;
  170. }
  171. }
  172. }