FairyGUI_DynamicFont_Binding.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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_DynamicFont_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.DynamicFont);
  23. args = new Type[]{typeof(System.String), typeof(UnityEngine.Font)};
  24. method = type.GetConstructor(flag, null, args, null);
  25. app.RegisterCLRMethodRedirection(method, Ctor_0);
  26. }
  27. static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  28. {
  29. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  30. StackObject* ptr_of_this_method;
  31. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  32. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  33. UnityEngine.Font @font = (UnityEngine.Font)typeof(UnityEngine.Font).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  34. __intp.Free(ptr_of_this_method);
  35. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  36. System.String @name = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  37. __intp.Free(ptr_of_this_method);
  38. var result_of_this_method = new FairyGUI.DynamicFont(@name, @font);
  39. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  40. }
  41. }
  42. }