1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- 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<object> __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<object> __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;
- }
- }
- }
|