ETModel_Hotfix_Binding.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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_Hotfix_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. FieldInfo field;
  22. Type[] args;
  23. Type type = typeof(ETModel.Hotfix);
  24. args = new Type[]{};
  25. method = type.GetMethod("GetHotfixTypes", flag, null, args, null);
  26. app.RegisterCLRMethodRedirection(method, GetHotfixTypes_0);
  27. field = type.GetField("Update", flag);
  28. app.RegisterCLRFieldGetter(field, get_Update_0);
  29. app.RegisterCLRFieldSetter(field, set_Update_0);
  30. field = type.GetField("LateUpdate", flag);
  31. app.RegisterCLRFieldGetter(field, get_LateUpdate_1);
  32. app.RegisterCLRFieldSetter(field, set_LateUpdate_1);
  33. field = type.GetField("OnApplicationQuit", flag);
  34. app.RegisterCLRFieldGetter(field, get_OnApplicationQuit_2);
  35. app.RegisterCLRFieldSetter(field, set_OnApplicationQuit_2);
  36. }
  37. static StackObject* GetHotfixTypes_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  38. {
  39. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  40. StackObject* ptr_of_this_method;
  41. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  42. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  43. ETModel.Hotfix instance_of_this_method = (ETModel.Hotfix)typeof(ETModel.Hotfix).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  44. __intp.Free(ptr_of_this_method);
  45. var result_of_this_method = instance_of_this_method.GetHotfixTypes();
  46. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  47. }
  48. static object get_Update_0(ref object o)
  49. {
  50. return ((ETModel.Hotfix)o).Update;
  51. }
  52. static void set_Update_0(ref object o, object v)
  53. {
  54. ((ETModel.Hotfix)o).Update = (System.Action)v;
  55. }
  56. static object get_LateUpdate_1(ref object o)
  57. {
  58. return ((ETModel.Hotfix)o).LateUpdate;
  59. }
  60. static void set_LateUpdate_1(ref object o, object v)
  61. {
  62. ((ETModel.Hotfix)o).LateUpdate = (System.Action)v;
  63. }
  64. static object get_OnApplicationQuit_2(ref object o)
  65. {
  66. return ((ETModel.Hotfix)o).OnApplicationQuit;
  67. }
  68. static void set_OnApplicationQuit_2(ref object o, object v)
  69. {
  70. ((ETModel.Hotfix)o).OnApplicationQuit = (System.Action)v;
  71. }
  72. }
  73. }