FairyGUI_GComponent_Binding.cs 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  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_GComponent_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.GComponent);
  23. args = new Type[]{typeof(System.Int32)};
  24. method = type.GetMethod("GetChildAt", flag, null, args, null);
  25. app.RegisterCLRMethodRedirection(method, GetChildAt_0);
  26. args = new Type[]{typeof(System.String)};
  27. method = type.GetMethod("GetChild", flag, null, args, null);
  28. app.RegisterCLRMethodRedirection(method, GetChild_1);
  29. args = new Type[]{typeof(System.String)};
  30. method = type.GetMethod("GetTransition", flag, null, args, null);
  31. app.RegisterCLRMethodRedirection(method, GetTransition_2);
  32. args = new Type[]{typeof(System.String)};
  33. method = type.GetMethod("GetController", flag, null, args, null);
  34. app.RegisterCLRMethodRedirection(method, GetController_3);
  35. args = new Type[]{typeof(System.Int32)};
  36. method = type.GetMethod("GetControllerAt", flag, null, args, null);
  37. app.RegisterCLRMethodRedirection(method, GetControllerAt_4);
  38. args = new Type[]{typeof(System.Int32)};
  39. method = type.GetMethod("GetTransitionAt", flag, null, args, null);
  40. app.RegisterCLRMethodRedirection(method, GetTransitionAt_5);
  41. args = new Type[]{};
  42. method = type.GetMethod("get_numChildren", flag, null, args, null);
  43. app.RegisterCLRMethodRedirection(method, get_numChildren_6);
  44. args = new Type[]{typeof(FairyGUI.GObject)};
  45. method = type.GetMethod("AddChild", flag, null, args, null);
  46. app.RegisterCLRMethodRedirection(method, AddChild_7);
  47. args = new Type[]{typeof(FairyGUI.GObject), typeof(System.Int32)};
  48. method = type.GetMethod("AddChildAt", flag, null, args, null);
  49. app.RegisterCLRMethodRedirection(method, AddChildAt_8);
  50. args = new Type[]{};
  51. method = type.GetMethod("get_scrollPane", flag, null, args, null);
  52. app.RegisterCLRMethodRedirection(method, get_scrollPane_9);
  53. args = new Type[]{typeof(System.Int32), typeof(System.Int32), typeof(System.Boolean)};
  54. method = type.GetMethod("RemoveChildren", flag, null, args, null);
  55. app.RegisterCLRMethodRedirection(method, RemoveChildren_10);
  56. args = new Type[]{typeof(FairyGUI.GObject)};
  57. method = type.GetMethod("GetChildIndex", flag, null, args, null);
  58. app.RegisterCLRMethodRedirection(method, GetChildIndex_11);
  59. args = new Type[]{};
  60. method = type.GetMethod("RemoveChildren", flag, null, args, null);
  61. app.RegisterCLRMethodRedirection(method, RemoveChildren_12);
  62. args = new Type[]{};
  63. method = type.GetConstructor(flag, null, args, null);
  64. app.RegisterCLRMethodRedirection(method, Ctor_0);
  65. }
  66. static StackObject* GetChildAt_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  67. {
  68. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  69. StackObject* ptr_of_this_method;
  70. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  71. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  72. System.Int32 @index = ptr_of_this_method->Value;
  73. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  74. FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  75. __intp.Free(ptr_of_this_method);
  76. var result_of_this_method = instance_of_this_method.GetChildAt(@index);
  77. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  78. }
  79. static StackObject* GetChild_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  80. {
  81. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  82. StackObject* ptr_of_this_method;
  83. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  84. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  85. System.String @name = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  86. __intp.Free(ptr_of_this_method);
  87. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  88. FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  89. __intp.Free(ptr_of_this_method);
  90. var result_of_this_method = instance_of_this_method.GetChild(@name);
  91. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  92. }
  93. static StackObject* GetTransition_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  94. {
  95. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  96. StackObject* ptr_of_this_method;
  97. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  98. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  99. System.String @name = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  100. __intp.Free(ptr_of_this_method);
  101. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  102. FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  103. __intp.Free(ptr_of_this_method);
  104. var result_of_this_method = instance_of_this_method.GetTransition(@name);
  105. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  106. }
  107. static StackObject* GetController_3(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  108. {
  109. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  110. StackObject* ptr_of_this_method;
  111. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  112. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  113. System.String @name = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  114. __intp.Free(ptr_of_this_method);
  115. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  116. FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  117. __intp.Free(ptr_of_this_method);
  118. var result_of_this_method = instance_of_this_method.GetController(@name);
  119. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  120. }
  121. static StackObject* GetControllerAt_4(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  122. {
  123. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  124. StackObject* ptr_of_this_method;
  125. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  126. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  127. System.Int32 @index = ptr_of_this_method->Value;
  128. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  129. FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  130. __intp.Free(ptr_of_this_method);
  131. var result_of_this_method = instance_of_this_method.GetControllerAt(@index);
  132. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  133. }
  134. static StackObject* GetTransitionAt_5(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  135. {
  136. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  137. StackObject* ptr_of_this_method;
  138. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  139. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  140. System.Int32 @index = ptr_of_this_method->Value;
  141. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  142. FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  143. __intp.Free(ptr_of_this_method);
  144. var result_of_this_method = instance_of_this_method.GetTransitionAt(@index);
  145. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  146. }
  147. static StackObject* get_numChildren_6(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  148. {
  149. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  150. StackObject* ptr_of_this_method;
  151. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  152. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  153. FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  154. __intp.Free(ptr_of_this_method);
  155. var result_of_this_method = instance_of_this_method.numChildren;
  156. __ret->ObjectType = ObjectTypes.Integer;
  157. __ret->Value = result_of_this_method;
  158. return __ret + 1;
  159. }
  160. static StackObject* AddChild_7(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, 2);
  165. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  166. FairyGUI.GObject @child = (FairyGUI.GObject)typeof(FairyGUI.GObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  167. __intp.Free(ptr_of_this_method);
  168. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  169. FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  170. __intp.Free(ptr_of_this_method);
  171. var result_of_this_method = instance_of_this_method.AddChild(@child);
  172. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  173. }
  174. static StackObject* AddChildAt_8(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  175. {
  176. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  177. StackObject* ptr_of_this_method;
  178. StackObject* __ret = ILIntepreter.Minus(__esp, 3);
  179. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  180. System.Int32 @index = ptr_of_this_method->Value;
  181. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  182. FairyGUI.GObject @child = (FairyGUI.GObject)typeof(FairyGUI.GObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  183. __intp.Free(ptr_of_this_method);
  184. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  185. FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  186. __intp.Free(ptr_of_this_method);
  187. var result_of_this_method = instance_of_this_method.AddChildAt(@child, @index);
  188. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  189. }
  190. static StackObject* get_scrollPane_9(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  191. {
  192. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  193. StackObject* ptr_of_this_method;
  194. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  195. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  196. FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  197. __intp.Free(ptr_of_this_method);
  198. var result_of_this_method = instance_of_this_method.scrollPane;
  199. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  200. }
  201. static StackObject* RemoveChildren_10(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  202. {
  203. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  204. StackObject* ptr_of_this_method;
  205. StackObject* __ret = ILIntepreter.Minus(__esp, 4);
  206. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  207. System.Boolean @dispose = ptr_of_this_method->Value == 1;
  208. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  209. System.Int32 @endIndex = ptr_of_this_method->Value;
  210. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  211. System.Int32 @beginIndex = ptr_of_this_method->Value;
  212. ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
  213. FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  214. __intp.Free(ptr_of_this_method);
  215. instance_of_this_method.RemoveChildren(@beginIndex, @endIndex, @dispose);
  216. return __ret;
  217. }
  218. static StackObject* GetChildIndex_11(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  219. {
  220. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  221. StackObject* ptr_of_this_method;
  222. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  223. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  224. FairyGUI.GObject @child = (FairyGUI.GObject)typeof(FairyGUI.GObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  225. __intp.Free(ptr_of_this_method);
  226. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  227. FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  228. __intp.Free(ptr_of_this_method);
  229. var result_of_this_method = instance_of_this_method.GetChildIndex(@child);
  230. __ret->ObjectType = ObjectTypes.Integer;
  231. __ret->Value = result_of_this_method;
  232. return __ret + 1;
  233. }
  234. static StackObject* RemoveChildren_12(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  235. {
  236. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  237. StackObject* ptr_of_this_method;
  238. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  239. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  240. FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  241. __intp.Free(ptr_of_this_method);
  242. instance_of_this_method.RemoveChildren();
  243. return __ret;
  244. }
  245. static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  246. {
  247. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  248. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  249. var result_of_this_method = new FairyGUI.GComponent();
  250. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  251. }
  252. }
  253. }