using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using ILRuntime.CLR.TypeSystem; using ILRuntime.CLR.Method; using ILRuntime.Runtime.Enviorment; using ILRuntime.Runtime.Intepreter; using ILRuntime.Runtime.Stack; using ILRuntime.Reflection; using ILRuntime.CLR.Utils; namespace ILRuntime.Runtime.Generated { unsafe class FairyGUI_TweenValue_Binding { public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app) { BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly; FieldInfo field; Type[] args; Type type = typeof(FairyGUI.TweenValue); field = type.GetField("x", flag); app.RegisterCLRFieldGetter(field, get_x_0); app.RegisterCLRFieldSetter(field, set_x_0); app.RegisterCLRFieldBinding(field, CopyToStack_x_0, AssignFromStack_x_0); } static object get_x_0(ref object o) { return ((FairyGUI.TweenValue)o).x; } static StackObject* CopyToStack_x_0(ref object o, ILIntepreter __intp, StackObject* __ret, IList __mStack) { var result_of_this_method = ((FairyGUI.TweenValue)o).x; __ret->ObjectType = ObjectTypes.Float; *(float*)&__ret->Value = result_of_this_method; return __ret + 1; } static void set_x_0(ref object o, object v) { ((FairyGUI.TweenValue)o).x = (System.Single)v; } static StackObject* AssignFromStack_x_0(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList __mStack) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; System.Single @x = *(float*)&ptr_of_this_method->Value; ((FairyGUI.TweenValue)o).x = @x; return ptr_of_this_method; } } }