123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329 |
- 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_GComponent_Binding
- {
- public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
- {
- BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
- MethodBase method;
- Type[] args;
- Type type = typeof(FairyGUI.GComponent);
- args = new Type[]{typeof(System.Int32)};
- method = type.GetMethod("GetChildAt", flag, null, args, null);
- app.RegisterCLRMethodRedirection(method, GetChildAt_0);
- args = new Type[]{typeof(System.String)};
- method = type.GetMethod("GetChild", flag, null, args, null);
- app.RegisterCLRMethodRedirection(method, GetChild_1);
- args = new Type[]{typeof(System.String)};
- method = type.GetMethod("GetTransition", flag, null, args, null);
- app.RegisterCLRMethodRedirection(method, GetTransition_2);
- args = new Type[]{typeof(System.String)};
- method = type.GetMethod("GetController", flag, null, args, null);
- app.RegisterCLRMethodRedirection(method, GetController_3);
- args = new Type[]{typeof(System.Int32)};
- method = type.GetMethod("GetControllerAt", flag, null, args, null);
- app.RegisterCLRMethodRedirection(method, GetControllerAt_4);
- args = new Type[]{typeof(System.Int32)};
- method = type.GetMethod("GetTransitionAt", flag, null, args, null);
- app.RegisterCLRMethodRedirection(method, GetTransitionAt_5);
- args = new Type[]{};
- method = type.GetMethod("get_numChildren", flag, null, args, null);
- app.RegisterCLRMethodRedirection(method, get_numChildren_6);
- args = new Type[]{typeof(FairyGUI.GObject)};
- method = type.GetMethod("AddChild", flag, null, args, null);
- app.RegisterCLRMethodRedirection(method, AddChild_7);
- args = new Type[]{typeof(FairyGUI.GObject), typeof(System.Int32)};
- method = type.GetMethod("AddChildAt", flag, null, args, null);
- app.RegisterCLRMethodRedirection(method, AddChildAt_8);
- args = new Type[]{};
- method = type.GetMethod("get_scrollPane", flag, null, args, null);
- app.RegisterCLRMethodRedirection(method, get_scrollPane_9);
- args = new Type[]{typeof(System.Int32), typeof(System.Int32), typeof(System.Boolean)};
- method = type.GetMethod("RemoveChildren", flag, null, args, null);
- app.RegisterCLRMethodRedirection(method, RemoveChildren_10);
- args = new Type[]{typeof(FairyGUI.GObject)};
- method = type.GetMethod("GetChildIndex", flag, null, args, null);
- app.RegisterCLRMethodRedirection(method, GetChildIndex_11);
- args = new Type[]{};
- method = type.GetMethod("RemoveChildren", flag, null, args, null);
- app.RegisterCLRMethodRedirection(method, RemoveChildren_12);
- args = new Type[]{};
- method = type.GetConstructor(flag, null, args, null);
- app.RegisterCLRMethodRedirection(method, Ctor_0);
- }
- static StackObject* GetChildAt_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, 2);
- ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
- System.Int32 @index = ptr_of_this_method->Value;
- ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
- FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
- __intp.Free(ptr_of_this_method);
- var result_of_this_method = instance_of_this_method.GetChildAt(@index);
- return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
- }
- static StackObject* GetChild_1(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, 2);
- ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
- System.String @name = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
- __intp.Free(ptr_of_this_method);
- ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
- FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
- __intp.Free(ptr_of_this_method);
- var result_of_this_method = instance_of_this_method.GetChild(@name);
- return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
- }
- static StackObject* GetTransition_2(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, 2);
- ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
- System.String @name = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
- __intp.Free(ptr_of_this_method);
- ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
- FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
- __intp.Free(ptr_of_this_method);
- var result_of_this_method = instance_of_this_method.GetTransition(@name);
- return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
- }
- static StackObject* GetController_3(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, 2);
- ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
- System.String @name = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
- __intp.Free(ptr_of_this_method);
- ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
- FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
- __intp.Free(ptr_of_this_method);
- var result_of_this_method = instance_of_this_method.GetController(@name);
- return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
- }
- static StackObject* GetControllerAt_4(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, 2);
- ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
- System.Int32 @index = ptr_of_this_method->Value;
- ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
- FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
- __intp.Free(ptr_of_this_method);
- var result_of_this_method = instance_of_this_method.GetControllerAt(@index);
- return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
- }
- static StackObject* GetTransitionAt_5(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, 2);
- ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
- System.Int32 @index = ptr_of_this_method->Value;
- ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
- FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
- __intp.Free(ptr_of_this_method);
- var result_of_this_method = instance_of_this_method.GetTransitionAt(@index);
- return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
- }
- static StackObject* get_numChildren_6(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);
- FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
- __intp.Free(ptr_of_this_method);
- var result_of_this_method = instance_of_this_method.numChildren;
- __ret->ObjectType = ObjectTypes.Integer;
- __ret->Value = result_of_this_method;
- return __ret + 1;
- }
- static StackObject* AddChild_7(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, 2);
- ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
- FairyGUI.GObject @child = (FairyGUI.GObject)typeof(FairyGUI.GObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
- __intp.Free(ptr_of_this_method);
- ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
- FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
- __intp.Free(ptr_of_this_method);
- var result_of_this_method = instance_of_this_method.AddChild(@child);
- return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
- }
- static StackObject* AddChildAt_8(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, 3);
- ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
- System.Int32 @index = ptr_of_this_method->Value;
- ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
- FairyGUI.GObject @child = (FairyGUI.GObject)typeof(FairyGUI.GObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
- __intp.Free(ptr_of_this_method);
- ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
- FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
- __intp.Free(ptr_of_this_method);
- var result_of_this_method = instance_of_this_method.AddChildAt(@child, @index);
- return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
- }
- static StackObject* get_scrollPane_9(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);
- FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
- __intp.Free(ptr_of_this_method);
- var result_of_this_method = instance_of_this_method.scrollPane;
- return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
- }
- static StackObject* RemoveChildren_10(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, 4);
- ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
- System.Boolean @dispose = ptr_of_this_method->Value == 1;
- ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
- System.Int32 @endIndex = ptr_of_this_method->Value;
- ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
- System.Int32 @beginIndex = ptr_of_this_method->Value;
- ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
- FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
- __intp.Free(ptr_of_this_method);
- instance_of_this_method.RemoveChildren(@beginIndex, @endIndex, @dispose);
- return __ret;
- }
- static StackObject* GetChildIndex_11(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, 2);
- ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
- FairyGUI.GObject @child = (FairyGUI.GObject)typeof(FairyGUI.GObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
- __intp.Free(ptr_of_this_method);
- ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
- FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
- __intp.Free(ptr_of_this_method);
- var result_of_this_method = instance_of_this_method.GetChildIndex(@child);
- __ret->ObjectType = ObjectTypes.Integer;
- __ret->Value = result_of_this_method;
- return __ret + 1;
- }
- static StackObject* RemoveChildren_12(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);
- FairyGUI.GComponent instance_of_this_method = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
- __intp.Free(ptr_of_this_method);
- instance_of_this_method.RemoveChildren();
- return __ret;
- }
- static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
- {
- ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
- StackObject* __ret = ILIntepreter.Minus(__esp, 0);
- var result_of_this_method = new FairyGUI.GComponent();
- return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
- }
- }
- }
|