Model_Entity_Binding.cs 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Reflection;
  4. using ILRuntime.CLR.TypeSystem;
  5. using ILRuntime.CLR.Method;
  6. using ILRuntime.Runtime.Enviorment;
  7. using ILRuntime.Runtime.Intepreter;
  8. using ILRuntime.Runtime.Stack;
  9. using ILRuntime.Reflection;
  10. using ILRuntime.CLR.Utils;
  11. namespace ILRuntime.Runtime.Generated
  12. {
  13. unsafe class Model_Entity_Binding
  14. {
  15. public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
  16. {
  17. BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
  18. MethodBase method;
  19. Type[] args;
  20. Type type = typeof(Model.Entity);
  21. args = new Type[]{};
  22. method = type.GetMethod("get_Type", flag, null, args, null);
  23. app.RegisterCLRMethodRedirection(method, get_Type_0);
  24. args = new Type[]{typeof(Model.EntityType)};
  25. method = type.GetMethod("set_Type", flag, null, args, null);
  26. app.RegisterCLRMethodRedirection(method, set_Type_1);
  27. args = new Type[]{};
  28. method = type.GetMethod("Dispose", flag, null, args, null);
  29. app.RegisterCLRMethodRedirection(method, Dispose_2);
  30. args = new Type[]{typeof(Model.Component)};
  31. method = type.GetMethod("AddComponent", flag, null, args, null);
  32. app.RegisterCLRMethodRedirection(method, AddComponent_3);
  33. args = new Type[]{typeof(System.Type)};
  34. method = type.GetMethod("RemoveComponent", flag, null, args, null);
  35. app.RegisterCLRMethodRedirection(method, RemoveComponent_4);
  36. args = new Type[]{};
  37. method = type.GetMethod("GetComponents", flag, null, args, null);
  38. app.RegisterCLRMethodRedirection(method, GetComponents_5);
  39. args = new Type[]{};
  40. method = type.GetMethod("BeginInit", flag, null, args, null);
  41. app.RegisterCLRMethodRedirection(method, BeginInit_6);
  42. args = new Type[]{};
  43. method = type.GetMethod("EndInit", flag, null, args, null);
  44. app.RegisterCLRMethodRedirection(method, EndInit_7);
  45. }
  46. static StackObject* get_Type_0(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  47. {
  48. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  49. StackObject* ptr_of_this_method;
  50. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  51. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  52. Model.Entity instance_of_this_method;
  53. instance_of_this_method = (Model.Entity)typeof(Model.Entity).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  54. __intp.Free(ptr_of_this_method);
  55. var result_of_this_method = instance_of_this_method.Type;
  56. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  57. }
  58. static StackObject* set_Type_1(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  59. {
  60. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  61. StackObject* ptr_of_this_method;
  62. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  63. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  64. Model.EntityType value = (Model.EntityType)typeof(Model.EntityType).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  65. __intp.Free(ptr_of_this_method);
  66. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  67. Model.Entity instance_of_this_method;
  68. instance_of_this_method = (Model.Entity)typeof(Model.Entity).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  69. __intp.Free(ptr_of_this_method);
  70. instance_of_this_method.Type = value;
  71. return __ret;
  72. }
  73. static StackObject* Dispose_2(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  74. {
  75. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  76. StackObject* ptr_of_this_method;
  77. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  78. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  79. Model.Entity instance_of_this_method;
  80. instance_of_this_method = (Model.Entity)typeof(Model.Entity).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  81. __intp.Free(ptr_of_this_method);
  82. instance_of_this_method.Dispose();
  83. return __ret;
  84. }
  85. static StackObject* AddComponent_3(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  86. {
  87. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  88. StackObject* ptr_of_this_method;
  89. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  90. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  91. Model.Component component = (Model.Component)typeof(Model.Component).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  92. __intp.Free(ptr_of_this_method);
  93. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  94. Model.Entity instance_of_this_method;
  95. instance_of_this_method = (Model.Entity)typeof(Model.Entity).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  96. __intp.Free(ptr_of_this_method);
  97. instance_of_this_method.AddComponent(component);
  98. return __ret;
  99. }
  100. static StackObject* RemoveComponent_4(ILIntepreter __intp, StackObject* __esp, List<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. System.Type type = (System.Type)typeof(System.Type).CheckCLRTypes(__domain, 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. Model.Entity instance_of_this_method;
  110. instance_of_this_method = (Model.Entity)typeof(Model.Entity).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  111. __intp.Free(ptr_of_this_method);
  112. instance_of_this_method.RemoveComponent(type);
  113. return __ret;
  114. }
  115. static StackObject* GetComponents_5(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  116. {
  117. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  118. StackObject* ptr_of_this_method;
  119. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  120. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  121. Model.Entity instance_of_this_method;
  122. instance_of_this_method = (Model.Entity)typeof(Model.Entity).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  123. __intp.Free(ptr_of_this_method);
  124. var result_of_this_method = instance_of_this_method.GetComponents();
  125. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  126. }
  127. static StackObject* BeginInit_6(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  128. {
  129. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  130. StackObject* ptr_of_this_method;
  131. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  132. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  133. Model.Entity instance_of_this_method;
  134. instance_of_this_method = (Model.Entity)typeof(Model.Entity).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  135. __intp.Free(ptr_of_this_method);
  136. instance_of_this_method.BeginInit();
  137. return __ret;
  138. }
  139. static StackObject* EndInit_7(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  140. {
  141. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  142. StackObject* ptr_of_this_method;
  143. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  144. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  145. Model.Entity instance_of_this_method;
  146. instance_of_this_method = (Model.Entity)typeof(Model.Entity).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  147. __intp.Free(ptr_of_this_method);
  148. instance_of_this_method.EndInit();
  149. return __ret;
  150. }
  151. }
  152. }