You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
3.2 KiB
83 lines
3.2 KiB
3 years ago
|
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 ParticleController_Binding
|
||
|
{
|
||
|
public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
|
||
|
{
|
||
|
BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
|
||
|
MethodBase method;
|
||
|
FieldInfo field;
|
||
|
Type[] args;
|
||
|
Type type = typeof(global::ParticleController);
|
||
|
args = new Type[]{};
|
||
|
method = type.GetMethod("Play", flag, null, args, null);
|
||
|
app.RegisterCLRMethodRedirection(method, Play_0);
|
||
|
|
||
|
field = type.GetField("OnParticleEnd", flag);
|
||
|
app.RegisterCLRFieldGetter(field, get_OnParticleEnd_0);
|
||
|
app.RegisterCLRFieldSetter(field, set_OnParticleEnd_0);
|
||
|
app.RegisterCLRFieldBinding(field, CopyToStack_OnParticleEnd_0, AssignFromStack_OnParticleEnd_0);
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
static StackObject* Play_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
||
|
{
|
||
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
||
|
StackObject* ptr_of_this_method;
|
||
|
StackObject* __ret = ILIntepreter.Minus(__esp, 1);
|
||
|
|
||
|
ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
|
||
|
global::ParticleController instance_of_this_method = (global::ParticleController)typeof(global::ParticleController).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
|
||
|
__intp.Free(ptr_of_this_method);
|
||
|
|
||
|
instance_of_this_method.Play();
|
||
|
|
||
|
return __ret;
|
||
|
}
|
||
|
|
||
|
|
||
|
static object get_OnParticleEnd_0(ref object o)
|
||
|
{
|
||
|
return ((global::ParticleController)o).OnParticleEnd;
|
||
|
}
|
||
|
|
||
|
static StackObject* CopyToStack_OnParticleEnd_0(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
|
||
|
{
|
||
|
var result_of_this_method = ((global::ParticleController)o).OnParticleEnd;
|
||
|
return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
|
||
|
}
|
||
|
|
||
|
static void set_OnParticleEnd_0(ref object o, object v)
|
||
|
{
|
||
|
((global::ParticleController)o).OnParticleEnd = (System.Action)v;
|
||
|
}
|
||
|
|
||
|
static StackObject* AssignFromStack_OnParticleEnd_0(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
|
||
|
{
|
||
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
||
|
System.Action @OnParticleEnd = (System.Action)typeof(System.Action).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)8);
|
||
|
((global::ParticleController)o).OnParticleEnd = @OnParticleEnd;
|
||
|
return ptr_of_this_method;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
}
|