GFGGame_AssetReleaser_Binding.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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_AssetReleaser_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(GFGGame.AssetReleaser);
  23. field = type.GetField("resPath", flag);
  24. app.RegisterCLRFieldGetter(field, get_resPath_0);
  25. app.RegisterCLRFieldSetter(field, set_resPath_0);
  26. app.RegisterCLRFieldBinding(field, CopyToStack_resPath_0, AssignFromStack_resPath_0);
  27. }
  28. static object get_resPath_0(ref object o)
  29. {
  30. return ((GFGGame.AssetReleaser)o).resPath;
  31. }
  32. static StackObject* CopyToStack_resPath_0(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
  33. {
  34. var result_of_this_method = ((GFGGame.AssetReleaser)o).resPath;
  35. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  36. }
  37. static void set_resPath_0(ref object o, object v)
  38. {
  39. ((GFGGame.AssetReleaser)o).resPath = (System.String)v;
  40. }
  41. static StackObject* AssignFromStack_resPath_0(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
  42. {
  43. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  44. System.String @resPath = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  45. ((GFGGame.AssetReleaser)o).resPath = @resPath;
  46. return ptr_of_this_method;
  47. }
  48. }
  49. }