ETModel_GlobalConfigComponent_Binding.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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_GlobalConfigComponent_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. FieldInfo field;
  21. Type[] args;
  22. Type type = typeof(ETModel.GlobalConfigComponent);
  23. field = type.GetField("Instance", flag);
  24. app.RegisterCLRFieldGetter(field, get_Instance_0);
  25. app.RegisterCLRFieldSetter(field, set_Instance_0);
  26. field = type.GetField("GlobalProto", flag);
  27. app.RegisterCLRFieldGetter(field, get_GlobalProto_1);
  28. app.RegisterCLRFieldSetter(field, set_GlobalProto_1);
  29. }
  30. static object get_Instance_0(ref object o)
  31. {
  32. return ETModel.GlobalConfigComponent.Instance;
  33. }
  34. static void set_Instance_0(ref object o, object v)
  35. {
  36. ETModel.GlobalConfigComponent.Instance = (ETModel.GlobalConfigComponent)v;
  37. }
  38. static object get_GlobalProto_1(ref object o)
  39. {
  40. return ((ETModel.GlobalConfigComponent)o).GlobalProto;
  41. }
  42. static void set_GlobalProto_1(ref object o, object v)
  43. {
  44. ((ETModel.GlobalConfigComponent)o).GlobalProto = (ETModel.GlobalProto)v;
  45. }
  46. }
  47. }