FairyGUI_GGraph_Binding.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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_GGraph_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.GGraph);
  23. args = new Type[]{typeof(System.Single), typeof(System.Single), typeof(System.Int32), typeof(UnityEngine.Color), typeof(UnityEngine.Color)};
  24. method = type.GetMethod("DrawRect", flag, null, args, null);
  25. app.RegisterCLRMethodRedirection(method, DrawRect_0);
  26. args = new Type[]{typeof(FairyGUI.DisplayObject)};
  27. method = type.GetMethod("SetNativeObject", flag, null, args, null);
  28. app.RegisterCLRMethodRedirection(method, SetNativeObject_1);
  29. args = new Type[]{};
  30. method = type.GetConstructor(flag, null, args, null);
  31. app.RegisterCLRMethodRedirection(method, Ctor_0);
  32. }
  33. static StackObject* DrawRect_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, 6);
  38. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  39. UnityEngine.Color @fillColor = (UnityEngine.Color)typeof(UnityEngine.Color).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. UnityEngine.Color @lineColor = (UnityEngine.Color)typeof(UnityEngine.Color).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  43. __intp.Free(ptr_of_this_method);
  44. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  45. System.Int32 @lineSize = ptr_of_this_method->Value;
  46. ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
  47. System.Single @aHeight = *(float*)&ptr_of_this_method->Value;
  48. ptr_of_this_method = ILIntepreter.Minus(__esp, 5);
  49. System.Single @aWidth = *(float*)&ptr_of_this_method->Value;
  50. ptr_of_this_method = ILIntepreter.Minus(__esp, 6);
  51. FairyGUI.GGraph instance_of_this_method = (FairyGUI.GGraph)typeof(FairyGUI.GGraph).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  52. __intp.Free(ptr_of_this_method);
  53. instance_of_this_method.DrawRect(@aWidth, @aHeight, @lineSize, @lineColor, @fillColor);
  54. return __ret;
  55. }
  56. static StackObject* SetNativeObject_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  57. {
  58. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  59. StackObject* ptr_of_this_method;
  60. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  61. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  62. FairyGUI.DisplayObject @obj = (FairyGUI.DisplayObject)typeof(FairyGUI.DisplayObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  63. __intp.Free(ptr_of_this_method);
  64. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  65. FairyGUI.GGraph instance_of_this_method = (FairyGUI.GGraph)typeof(FairyGUI.GGraph).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  66. __intp.Free(ptr_of_this_method);
  67. instance_of_this_method.SetNativeObject(@obj);
  68. return __ret;
  69. }
  70. static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  71. {
  72. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  73. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  74. var result_of_this_method = new FairyGUI.GGraph();
  75. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  76. }
  77. }
  78. }