GFGGame_MusicManager_Binding.cs 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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 GFGGame_MusicManager_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(GFGGame.MusicManager);
  23. args = new Type[]{};
  24. method = type.GetMethod("GetSoundTime", flag, null, args, null);
  25. app.RegisterCLRMethodRedirection(method, GetSoundTime_0);
  26. args = new Type[]{};
  27. method = type.GetMethod("UnPause", flag, null, args, null);
  28. app.RegisterCLRMethodRedirection(method, UnPause_1);
  29. args = new Type[]{};
  30. method = type.GetMethod("Pause", flag, null, args, null);
  31. app.RegisterCLRMethodRedirection(method, Pause_2);
  32. args = new Type[]{typeof(System.String), typeof(System.Boolean)};
  33. method = type.GetMethod("PlayByUrl", flag, null, args, null);
  34. app.RegisterCLRMethodRedirection(method, PlayByUrl_3);
  35. args = new Type[]{};
  36. method = type.GetMethod("Stop", flag, null, args, null);
  37. app.RegisterCLRMethodRedirection(method, Stop_4);
  38. args = new Type[]{typeof(System.String), typeof(System.Boolean)};
  39. method = type.GetMethod("Play", flag, null, args, null);
  40. app.RegisterCLRMethodRedirection(method, Play_5);
  41. args = new Type[]{};
  42. method = type.GetMethod("get_isOn", flag, null, args, null);
  43. app.RegisterCLRMethodRedirection(method, get_isOn_6);
  44. args = new Type[]{typeof(System.Boolean)};
  45. method = type.GetMethod("set_isOn", flag, null, args, null);
  46. app.RegisterCLRMethodRedirection(method, set_isOn_7);
  47. }
  48. static StackObject* GetSoundTime_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  49. {
  50. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  51. StackObject* ptr_of_this_method;
  52. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  53. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  54. GFGGame.MusicManager instance_of_this_method = (GFGGame.MusicManager)typeof(GFGGame.MusicManager).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  55. __intp.Free(ptr_of_this_method);
  56. var result_of_this_method = instance_of_this_method.GetSoundTime();
  57. __ret->ObjectType = ObjectTypes.Float;
  58. *(float*)&__ret->Value = result_of_this_method;
  59. return __ret + 1;
  60. }
  61. static StackObject* UnPause_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  62. {
  63. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  64. StackObject* ptr_of_this_method;
  65. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  66. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  67. GFGGame.MusicManager instance_of_this_method = (GFGGame.MusicManager)typeof(GFGGame.MusicManager).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  68. __intp.Free(ptr_of_this_method);
  69. instance_of_this_method.UnPause();
  70. return __ret;
  71. }
  72. static StackObject* Pause_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  73. {
  74. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  75. StackObject* ptr_of_this_method;
  76. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  77. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  78. GFGGame.MusicManager instance_of_this_method = (GFGGame.MusicManager)typeof(GFGGame.MusicManager).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  79. __intp.Free(ptr_of_this_method);
  80. instance_of_this_method.Pause();
  81. return __ret;
  82. }
  83. static StackObject* PlayByUrl_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, 3);
  88. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  89. System.Boolean @must = ptr_of_this_method->Value == 1;
  90. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  91. System.String @url = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  92. __intp.Free(ptr_of_this_method);
  93. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  94. GFGGame.MusicManager instance_of_this_method = (GFGGame.MusicManager)typeof(GFGGame.MusicManager).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  95. __intp.Free(ptr_of_this_method);
  96. instance_of_this_method.PlayByUrl(@url, @must);
  97. return __ret;
  98. }
  99. static StackObject* Stop_4(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  100. {
  101. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  102. StackObject* ptr_of_this_method;
  103. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  104. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  105. GFGGame.MusicManager instance_of_this_method = (GFGGame.MusicManager)typeof(GFGGame.MusicManager).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  106. __intp.Free(ptr_of_this_method);
  107. instance_of_this_method.Stop();
  108. return __ret;
  109. }
  110. static StackObject* Play_5(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  111. {
  112. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  113. StackObject* ptr_of_this_method;
  114. StackObject* __ret = ILIntepreter.Minus(__esp, 3);
  115. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  116. System.Boolean @must = ptr_of_this_method->Value == 1;
  117. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  118. System.String @path = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  119. __intp.Free(ptr_of_this_method);
  120. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  121. GFGGame.MusicManager instance_of_this_method = (GFGGame.MusicManager)typeof(GFGGame.MusicManager).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  122. __intp.Free(ptr_of_this_method);
  123. instance_of_this_method.Play(@path, @must);
  124. return __ret;
  125. }
  126. static StackObject* get_isOn_6(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  127. {
  128. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  129. StackObject* ptr_of_this_method;
  130. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  131. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  132. GFGGame.MusicManager instance_of_this_method = (GFGGame.MusicManager)typeof(GFGGame.MusicManager).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  133. __intp.Free(ptr_of_this_method);
  134. var result_of_this_method = instance_of_this_method.isOn;
  135. __ret->ObjectType = ObjectTypes.Integer;
  136. __ret->Value = result_of_this_method ? 1 : 0;
  137. return __ret + 1;
  138. }
  139. static StackObject* set_isOn_7(ILIntepreter __intp, StackObject* __esp, IList<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, 2);
  144. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  145. System.Boolean @value = ptr_of_this_method->Value == 1;
  146. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  147. GFGGame.MusicManager instance_of_this_method = (GFGGame.MusicManager)typeof(GFGGame.MusicManager).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  148. __intp.Free(ptr_of_this_method);
  149. instance_of_this_method.isOn = value;
  150. return __ret;
  151. }
  152. }
  153. }