FairyGUI_GLoader_Binding.cs 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 FairyGUI_GLoader_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(FairyGUI.GLoader);
  23. args = new Type[]{typeof(System.String)};
  24. method = type.GetMethod("set_url", flag, null, args, null);
  25. app.RegisterCLRMethodRedirection(method, set_url_0);
  26. args = new Type[]{typeof(System.Boolean)};
  27. method = type.GetMethod("set_autoSize", flag, null, args, null);
  28. app.RegisterCLRMethodRedirection(method, set_autoSize_1);
  29. args = new Type[]{};
  30. method = type.GetConstructor(flag, null, args, null);
  31. app.RegisterCLRMethodRedirection(method, Ctor_0);
  32. }
  33. static StackObject* set_url_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  34. {
  35. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  36. StackObject* ptr_of_this_method;
  37. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  38. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  39. System.String @value = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  40. __intp.Free(ptr_of_this_method);
  41. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  42. FairyGUI.GLoader instance_of_this_method = (FairyGUI.GLoader)typeof(FairyGUI.GLoader).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  43. __intp.Free(ptr_of_this_method);
  44. instance_of_this_method.url = value;
  45. return __ret;
  46. }
  47. static StackObject* set_autoSize_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  48. {
  49. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  50. StackObject* ptr_of_this_method;
  51. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  52. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  53. System.Boolean @value = ptr_of_this_method->Value == 1;
  54. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  55. FairyGUI.GLoader instance_of_this_method = (FairyGUI.GLoader)typeof(FairyGUI.GLoader).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  56. __intp.Free(ptr_of_this_method);
  57. instance_of_this_method.autoSize = value;
  58. return __ret;
  59. }
  60. static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  61. {
  62. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  63. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  64. var result_of_this_method = new FairyGUI.GLoader();
  65. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  66. }
  67. }
  68. }