FairyGUI_Timers_Binding.cs 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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_Timers_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.Timers);
  23. args = new Type[]{};
  24. method = type.GetMethod("get_inst", flag, null, args, null);
  25. app.RegisterCLRMethodRedirection(method, get_inst_0);
  26. args = new Type[]{typeof(FairyGUI.TimerCallback)};
  27. method = type.GetMethod("Exists", flag, null, args, null);
  28. app.RegisterCLRMethodRedirection(method, Exists_1);
  29. args = new Type[]{typeof(System.Single), typeof(System.Int32), typeof(FairyGUI.TimerCallback)};
  30. method = type.GetMethod("Add", flag, null, args, null);
  31. app.RegisterCLRMethodRedirection(method, Add_2);
  32. args = new Type[]{typeof(FairyGUI.TimerCallback)};
  33. method = type.GetMethod("AddUpdate", flag, null, args, null);
  34. app.RegisterCLRMethodRedirection(method, AddUpdate_3);
  35. args = new Type[]{typeof(FairyGUI.TimerCallback)};
  36. method = type.GetMethod("Remove", flag, null, args, null);
  37. app.RegisterCLRMethodRedirection(method, Remove_4);
  38. args = new Type[]{typeof(FairyGUI.TimerCallback)};
  39. method = type.GetMethod("CallLater", flag, null, args, null);
  40. app.RegisterCLRMethodRedirection(method, CallLater_5);
  41. args = new Type[]{typeof(System.Single), typeof(System.Int32), typeof(FairyGUI.TimerCallback), typeof(System.Object)};
  42. method = type.GetMethod("Add", flag, null, args, null);
  43. app.RegisterCLRMethodRedirection(method, Add_6);
  44. }
  45. static StackObject* get_inst_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  46. {
  47. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  48. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  49. var result_of_this_method = FairyGUI.Timers.inst;
  50. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  51. }
  52. static StackObject* Exists_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. FairyGUI.TimerCallback @callback = (FairyGUI.TimerCallback)typeof(FairyGUI.TimerCallback).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  59. __intp.Free(ptr_of_this_method);
  60. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  61. FairyGUI.Timers instance_of_this_method = (FairyGUI.Timers)typeof(FairyGUI.Timers).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  62. __intp.Free(ptr_of_this_method);
  63. var result_of_this_method = instance_of_this_method.Exists(@callback);
  64. __ret->ObjectType = ObjectTypes.Integer;
  65. __ret->Value = result_of_this_method ? 1 : 0;
  66. return __ret + 1;
  67. }
  68. static StackObject* Add_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  69. {
  70. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  71. StackObject* ptr_of_this_method;
  72. StackObject* __ret = ILIntepreter.Minus(__esp, 4);
  73. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  74. FairyGUI.TimerCallback @callback = (FairyGUI.TimerCallback)typeof(FairyGUI.TimerCallback).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  75. __intp.Free(ptr_of_this_method);
  76. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  77. System.Int32 @repeat = ptr_of_this_method->Value;
  78. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  79. System.Single @interval = *(float*)&ptr_of_this_method->Value;
  80. ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
  81. FairyGUI.Timers instance_of_this_method = (FairyGUI.Timers)typeof(FairyGUI.Timers).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  82. __intp.Free(ptr_of_this_method);
  83. instance_of_this_method.Add(@interval, @repeat, @callback);
  84. return __ret;
  85. }
  86. static StackObject* AddUpdate_3(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  87. {
  88. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  89. StackObject* ptr_of_this_method;
  90. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  91. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  92. FairyGUI.TimerCallback @callback = (FairyGUI.TimerCallback)typeof(FairyGUI.TimerCallback).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  93. __intp.Free(ptr_of_this_method);
  94. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  95. FairyGUI.Timers instance_of_this_method = (FairyGUI.Timers)typeof(FairyGUI.Timers).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  96. __intp.Free(ptr_of_this_method);
  97. instance_of_this_method.AddUpdate(@callback);
  98. return __ret;
  99. }
  100. static StackObject* Remove_4(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  101. {
  102. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  103. StackObject* ptr_of_this_method;
  104. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  105. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  106. FairyGUI.TimerCallback @callback = (FairyGUI.TimerCallback)typeof(FairyGUI.TimerCallback).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  107. __intp.Free(ptr_of_this_method);
  108. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  109. FairyGUI.Timers instance_of_this_method = (FairyGUI.Timers)typeof(FairyGUI.Timers).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  110. __intp.Free(ptr_of_this_method);
  111. instance_of_this_method.Remove(@callback);
  112. return __ret;
  113. }
  114. static StackObject* CallLater_5(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  115. {
  116. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  117. StackObject* ptr_of_this_method;
  118. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  119. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  120. FairyGUI.TimerCallback @callback = (FairyGUI.TimerCallback)typeof(FairyGUI.TimerCallback).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  121. __intp.Free(ptr_of_this_method);
  122. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  123. FairyGUI.Timers instance_of_this_method = (FairyGUI.Timers)typeof(FairyGUI.Timers).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  124. __intp.Free(ptr_of_this_method);
  125. instance_of_this_method.CallLater(@callback);
  126. return __ret;
  127. }
  128. static StackObject* Add_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, 5);
  133. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  134. System.Object @callbackParam = (System.Object)typeof(System.Object).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  135. __intp.Free(ptr_of_this_method);
  136. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  137. FairyGUI.TimerCallback @callback = (FairyGUI.TimerCallback)typeof(FairyGUI.TimerCallback).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  138. __intp.Free(ptr_of_this_method);
  139. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  140. System.Int32 @repeat = ptr_of_this_method->Value;
  141. ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
  142. System.Single @interval = *(float*)&ptr_of_this_method->Value;
  143. ptr_of_this_method = ILIntepreter.Minus(__esp, 5);
  144. FairyGUI.Timers instance_of_this_method = (FairyGUI.Timers)typeof(FairyGUI.Timers).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  145. __intp.Free(ptr_of_this_method);
  146. instance_of_this_method.Add(@interval, @repeat, @callback, @callbackParam);
  147. return __ret;
  148. }
  149. }
  150. }