FairyGUI_TweenValue_Binding.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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_TweenValue_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(FairyGUI.TweenValue);
  23. field = type.GetField("x", flag);
  24. app.RegisterCLRFieldGetter(field, get_x_0);
  25. app.RegisterCLRFieldSetter(field, set_x_0);
  26. app.RegisterCLRFieldBinding(field, CopyToStack_x_0, AssignFromStack_x_0);
  27. }
  28. static object get_x_0(ref object o)
  29. {
  30. return ((FairyGUI.TweenValue)o).x;
  31. }
  32. static StackObject* CopyToStack_x_0(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
  33. {
  34. var result_of_this_method = ((FairyGUI.TweenValue)o).x;
  35. __ret->ObjectType = ObjectTypes.Float;
  36. *(float*)&__ret->Value = result_of_this_method;
  37. return __ret + 1;
  38. }
  39. static void set_x_0(ref object o, object v)
  40. {
  41. ((FairyGUI.TweenValue)o).x = (System.Single)v;
  42. }
  43. static StackObject* AssignFromStack_x_0(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
  44. {
  45. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  46. System.Single @x = *(float*)&ptr_of_this_method->Value;
  47. ((FairyGUI.TweenValue)o).x = @x;
  48. return ptr_of_this_method;
  49. }
  50. }
  51. }