ETModel_Game_Binding.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 ETModel_Game_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(ETModel.Game);
  23. args = new Type[]{};
  24. method = type.GetMethod("get_Hotfix", flag, null, args, null);
  25. app.RegisterCLRMethodRedirection(method, get_Hotfix_0);
  26. args = new Type[]{};
  27. method = type.GetMethod("get_EventSystem", flag, null, args, null);
  28. app.RegisterCLRMethodRedirection(method, get_EventSystem_1);
  29. args = new Type[]{};
  30. method = type.GetMethod("get_Scene", flag, null, args, null);
  31. app.RegisterCLRMethodRedirection(method, get_Scene_2);
  32. }
  33. static StackObject* get_Hotfix_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  34. {
  35. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  36. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  37. var result_of_this_method = ETModel.Game.Hotfix;
  38. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  39. }
  40. static StackObject* get_EventSystem_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  41. {
  42. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  43. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  44. var result_of_this_method = ETModel.Game.EventSystem;
  45. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  46. }
  47. static StackObject* get_Scene_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  48. {
  49. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  50. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  51. var result_of_this_method = ETModel.Game.Scene;
  52. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  53. }
  54. }
  55. }