コード例 #1
0
        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.PopupMenu);

            args   = new Type[] { typeof(System.String), typeof(FairyGUI.EventCallback0) };
            method = type.GetMethod("AddItem", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, AddItem_0);
            args   = new Type[] { typeof(System.String), typeof(FairyGUI.EventCallback1) };
            method = type.GetMethod("AddItem", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, AddItem_1);
            args   = new Type[] { typeof(System.String), typeof(System.Int32), typeof(FairyGUI.EventCallback0) };
            method = type.GetMethod("AddItemAt", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, AddItemAt_2);
            args   = new Type[] { typeof(System.String), typeof(System.Int32), typeof(FairyGUI.EventCallback1) };
            method = type.GetMethod("AddItemAt", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, AddItemAt_3);
            args   = new Type[] {};
            method = type.GetMethod("AddSeperator", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, AddSeperator_4);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("GetItemName", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetItemName_5);
            args   = new Type[] { typeof(System.String), typeof(System.String) };
            method = type.GetMethod("SetItemText", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SetItemText_6);
            args   = new Type[] { typeof(System.String), typeof(System.Boolean) };
            method = type.GetMethod("SetItemVisible", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SetItemVisible_7);
            args   = new Type[] { typeof(System.String), typeof(System.Boolean) };
            method = type.GetMethod("SetItemGrayed", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SetItemGrayed_8);
            args   = new Type[] { typeof(System.String), typeof(System.Boolean) };
            method = type.GetMethod("SetItemCheckable", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SetItemCheckable_9);
            args   = new Type[] { typeof(System.String), typeof(System.Boolean) };
            method = type.GetMethod("SetItemChecked", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SetItemChecked_10);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("isItemChecked", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, isItemChecked_11);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("RemoveItem", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, RemoveItem_12);
            args   = new Type[] {};
            method = type.GetMethod("ClearItems", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ClearItems_13);
            args   = new Type[] {};
            method = type.GetMethod("get_itemCount", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_itemCount_14);
            args   = new Type[] {};
            method = type.GetMethod("get_contentPane", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_contentPane_15);
            args   = new Type[] {};
            method = type.GetMethod("get_list", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_list_16);
            args   = new Type[] {};
            method = type.GetMethod("Dispose", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Dispose_17);
            args   = new Type[] {};
            method = type.GetMethod("Show", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Show_18);
            args   = new Type[] { typeof(FairyGUI.GObject), typeof(System.Object) };
            method = type.GetMethod("Show", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Show_19);



            app.RegisterCLRCreateDefaultInstance(type, () => new FairyGUI.PopupMenu());
            app.RegisterCLRCreateArrayInstance(type, s => new FairyGUI.PopupMenu[s]);

            args   = new Type[] {};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
            args   = new Type[] { typeof(System.String) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_1);
        }
コード例 #2
0
        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(System.Single);

            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("IsInfinity", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, IsInfinity_0);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("IsPositiveInfinity", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, IsPositiveInfinity_1);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("IsNegativeInfinity", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, IsNegativeInfinity_2);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("IsNaN", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, IsNaN_3);
            args   = new Type[] { typeof(System.Object) };
            method = type.GetMethod("CompareTo", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CompareTo_4);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("CompareTo", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CompareTo_5);
            args   = new Type[] { typeof(System.Single), typeof(System.Single) };
            method = type.GetMethod("op_Equality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Equality_6);
            args   = new Type[] { typeof(System.Single), typeof(System.Single) };
            method = type.GetMethod("op_Inequality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Inequality_7);
            args   = new Type[] { typeof(System.Single), typeof(System.Single) };
            method = type.GetMethod("op_LessThan", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_LessThan_8);
            args   = new Type[] { typeof(System.Single), typeof(System.Single) };
            method = type.GetMethod("op_GreaterThan", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_GreaterThan_9);
            args   = new Type[] { typeof(System.Single), typeof(System.Single) };
            method = type.GetMethod("op_LessThanOrEqual", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_LessThanOrEqual_10);
            args   = new Type[] { typeof(System.Single), typeof(System.Single) };
            method = type.GetMethod("op_GreaterThanOrEqual", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_GreaterThanOrEqual_11);
            args   = new Type[] { typeof(System.Object) };
            method = type.GetMethod("Equals", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Equals_12);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("Equals", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Equals_13);
            args   = new Type[] {};
            method = type.GetMethod("GetHashCode", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetHashCode_14);
            args   = new Type[] {};
            method = type.GetMethod("ToString", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToString_15);
            args   = new Type[] { typeof(System.IFormatProvider) };
            method = type.GetMethod("ToString", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToString_16);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("ToString", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToString_17);
            args   = new Type[] { typeof(System.String), typeof(System.IFormatProvider) };
            method = type.GetMethod("ToString", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToString_18);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("Parse", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Parse_19);
            args   = new Type[] { typeof(System.String), typeof(System.Globalization.NumberStyles) };
            method = type.GetMethod("Parse", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Parse_20);
            args   = new Type[] { typeof(System.String), typeof(System.IFormatProvider) };
            method = type.GetMethod("Parse", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Parse_21);
            args   = new Type[] { typeof(System.String), typeof(System.Globalization.NumberStyles), typeof(System.IFormatProvider) };
            method = type.GetMethod("Parse", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Parse_22);
            args   = new Type[] { typeof(System.String), typeof(System.Single).MakeByRefType() };
            method = type.GetMethod("TryParse", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, TryParse_23);
            args   = new Type[] { typeof(System.String), typeof(System.Globalization.NumberStyles), typeof(System.IFormatProvider), typeof(System.Single).MakeByRefType() };
            method = type.GetMethod("TryParse", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, TryParse_24);
            args   = new Type[] {};
            method = type.GetMethod("GetTypeCode", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetTypeCode_25);

            field = type.GetField("MinValue", flag);
            app.RegisterCLRFieldGetter(field, get_MinValue_0);
            field = type.GetField("Epsilon", flag);
            app.RegisterCLRFieldGetter(field, get_Epsilon_1);
            field = type.GetField("MaxValue", flag);
            app.RegisterCLRFieldGetter(field, get_MaxValue_2);
            field = type.GetField("PositiveInfinity", flag);
            app.RegisterCLRFieldGetter(field, get_PositiveInfinity_3);
            field = type.GetField("NegativeInfinity", flag);
            app.RegisterCLRFieldGetter(field, get_NegativeInfinity_4);
            field = type.GetField("NaN", flag);
            app.RegisterCLRFieldGetter(field, get_NaN_5);


            app.RegisterCLRCreateArrayInstance(type, s => new System.Single[s]);
        }
コード例 #3
0
        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(FairyGUI.GTween);

            args   = new Type[] { typeof(System.Single), typeof(System.Single), typeof(System.Single) };
            method = type.GetMethod("To", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, To_0);
            args   = new Type[] { typeof(UnityEngine.Vector2), typeof(UnityEngine.Vector2), typeof(System.Single) };
            method = type.GetMethod("To", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, To_1);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3), typeof(System.Single) };
            method = type.GetMethod("To", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, To_2);
            args   = new Type[] { typeof(UnityEngine.Vector4), typeof(UnityEngine.Vector4), typeof(System.Single) };
            method = type.GetMethod("To", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, To_3);
            args   = new Type[] { typeof(UnityEngine.Color), typeof(UnityEngine.Color), typeof(System.Single) };
            method = type.GetMethod("To", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, To_4);
            args   = new Type[] { typeof(System.Double), typeof(System.Double), typeof(System.Single) };
            method = type.GetMethod("To", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, To_5);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("DelayedCall", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DelayedCall_6);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(System.Single), typeof(System.Single) };
            method = type.GetMethod("Shake", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Shake_7);
            args   = new Type[] { typeof(System.Object) };
            method = type.GetMethod("IsTweening", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, IsTweening_8);
            args   = new Type[] { typeof(System.Object), typeof(FairyGUI.TweenPropType) };
            method = type.GetMethod("IsTweening", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, IsTweening_9);
            args   = new Type[] { typeof(System.Object) };
            method = type.GetMethod("Kill", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Kill_10);
            args   = new Type[] { typeof(System.Object), typeof(System.Boolean) };
            method = type.GetMethod("Kill", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Kill_11);
            args   = new Type[] { typeof(System.Object), typeof(FairyGUI.TweenPropType), typeof(System.Boolean) };
            method = type.GetMethod("Kill", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Kill_12);
            args   = new Type[] { typeof(System.Object) };
            method = type.GetMethod("GetTween", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetTween_13);
            args   = new Type[] { typeof(System.Object), typeof(FairyGUI.TweenPropType) };
            method = type.GetMethod("GetTween", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetTween_14);
            args   = new Type[] {};
            method = type.GetMethod("Clean", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Clean_15);

            field = type.GetField("catchCallbackExceptions", flag);
            app.RegisterCLRFieldGetter(field, get_catchCallbackExceptions_0);
            app.RegisterCLRFieldSetter(field, set_catchCallbackExceptions_0);


            app.RegisterCLRCreateDefaultInstance(type, () => new FairyGUI.GTween());
            app.RegisterCLRCreateArrayInstance(type, s => new FairyGUI.GTween[s]);

            args   = new Type[] {};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
コード例 #4
0
        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(UnityEngine.Color);

            MethodInfo[] methods = type.GetMethods(flag).Where(t => !t.IsGenericMethod).ToArray();
            args   = new Type[] {};
            method = type.GetMethod("get_white", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_white_0);
            args   = new Type[] {};
            method = type.GetMethod("get_black", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_black_1);
            args   = new Type[] {};
            method = type.GetMethod("get_gray", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_gray_2);
            args   = new Type[] { typeof(UnityEngine.Vector4) };
            method = methods.Where(t => t.Name.Equals("op_Implicit") && t.ReturnType == typeof(UnityEngine.Color) && t.CheckMethodParams(args)).Single();
            app.RegisterCLRMethodRedirection(method, op_Implicit_3);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("get_Item", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Item_4);
            args   = new Type[] {};
            method = type.GetMethod("get_magenta", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_magenta_5);
            args   = new Type[] {};
            method = type.GetMethod("get_red", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_red_6);
            args   = new Type[] {};
            method = type.GetMethod("get_grey", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_grey_7);
            args   = new Type[] {};
            method = type.GetMethod("get_green", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_green_8);
            args   = new Type[] {};
            method = type.GetMethod("get_yellow", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_yellow_9);
            args   = new Type[] { typeof(UnityEngine.Color), typeof(UnityEngine.Color) };
            method = type.GetMethod("op_Equality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Equality_10);
            args   = new Type[] {};
            method = type.GetMethod("get_blue", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_blue_11);
            args   = new Type[] {};
            method = type.GetMethod("get_clear", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_clear_12);

            field = type.GetField("r", flag);
            app.RegisterCLRFieldGetter(field, get_r_0);
            app.RegisterCLRFieldSetter(field, set_r_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_r_0, AssignFromStack_r_0);
            field = type.GetField("g", flag);
            app.RegisterCLRFieldGetter(field, get_g_1);
            app.RegisterCLRFieldSetter(field, set_g_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_g_1, AssignFromStack_g_1);
            field = type.GetField("b", flag);
            app.RegisterCLRFieldGetter(field, get_b_2);
            app.RegisterCLRFieldSetter(field, set_b_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_b_2, AssignFromStack_b_2);

            app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.Color());
            app.RegisterCLRCreateArrayInstance(type, s => new UnityEngine.Color[s]);

            args   = new Type[] { typeof(System.Single), typeof(System.Single), typeof(System.Single) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
            args   = new Type[] { typeof(System.Single), typeof(System.Single), typeof(System.Single), typeof(System.Single) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_1);
        }
コード例 #5
0
        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(UnityEngine.EventSystems.StandaloneInputModule);

            args   = new Type[] {};
            method = type.GetMethod("get_forceModuleActive", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_forceModuleActive_0);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_forceModuleActive", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_forceModuleActive_1);
            args   = new Type[] {};
            method = type.GetMethod("get_inputActionsPerSecond", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_inputActionsPerSecond_2);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("set_inputActionsPerSecond", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_inputActionsPerSecond_3);
            args   = new Type[] {};
            method = type.GetMethod("get_repeatDelay", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_repeatDelay_4);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("set_repeatDelay", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_repeatDelay_5);
            args   = new Type[] {};
            method = type.GetMethod("get_horizontalAxis", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_horizontalAxis_6);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("set_horizontalAxis", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_horizontalAxis_7);
            args   = new Type[] {};
            method = type.GetMethod("get_verticalAxis", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_verticalAxis_8);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("set_verticalAxis", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_verticalAxis_9);
            args   = new Type[] {};
            method = type.GetMethod("get_submitButton", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_submitButton_10);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("set_submitButton", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_submitButton_11);
            args   = new Type[] {};
            method = type.GetMethod("get_cancelButton", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_cancelButton_12);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("set_cancelButton", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_cancelButton_13);
            args   = new Type[] {};
            method = type.GetMethod("UpdateModule", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, UpdateModule_14);
            args   = new Type[] {};
            method = type.GetMethod("IsModuleSupported", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, IsModuleSupported_15);
            args   = new Type[] {};
            method = type.GetMethod("ShouldActivateModule", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ShouldActivateModule_16);
            args   = new Type[] {};
            method = type.GetMethod("ActivateModule", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ActivateModule_17);
            args   = new Type[] {};
            method = type.GetMethod("DeactivateModule", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DeactivateModule_18);
            args   = new Type[] {};
            method = type.GetMethod("Process", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Process_19);



            app.RegisterCLRCreateArrayInstance(type, s => new UnityEngine.EventSystems.StandaloneInputModule[s]);
        }
コード例 #6
0
        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(UnityEngine.Vector3);

            args   = new Type[] {};
            method = type.GetMethod("get_zero", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_zero_0);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3), typeof(System.Single) };
            method = type.GetMethod("Lerp", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Lerp_1);
            args   = new Type[] {};
            method = type.GetMethod("get_magnitude", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_magnitude_2);
            args   = new Type[] {};
            method = type.GetMethod("get_sqrMagnitude", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_sqrMagnitude_3);
            args   = new Type[] {};
            method = type.GetMethod("get_up", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_up_4);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3) };
            method = type.GetMethod("op_Subtraction", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Subtraction_5);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3) };
            method = type.GetMethod("op_Equality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Equality_6);
            args   = new Type[] {};
            method = type.GetMethod("get_normalized", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_normalized_7);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3) };
            method = type.GetMethod("Angle", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Angle_8);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3) };
            method = type.GetMethod("Cross", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Cross_9);
            args   = new Type[] {};
            method = type.GetMethod("get_forward", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_forward_10);

            field = type.GetField("y", flag);
            app.RegisterCLRFieldGetter(field, get_y_0);
            app.RegisterCLRFieldSetter(field, set_y_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_y_0, AssignFromStack_y_0);
            field = type.GetField("x", flag);
            app.RegisterCLRFieldGetter(field, get_x_1);
            app.RegisterCLRFieldSetter(field, set_x_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_x_1, AssignFromStack_x_1);
            field = type.GetField("z", flag);
            app.RegisterCLRFieldGetter(field, get_z_2);
            app.RegisterCLRFieldSetter(field, set_z_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_z_2, AssignFromStack_z_2);

            app.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);

            app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.Vector3());
            app.RegisterCLRCreateArrayInstance(type, s => new UnityEngine.Vector3[s]);

            args   = new Type[] { typeof(System.Single), typeof(System.Single), typeof(System.Single) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
コード例 #7
0
        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.GTextField);

            args   = new Type[] {};
            method = type.GetMethod("get_text", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_text_0);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("set_text", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_text_1);
            args   = new Type[] {};
            method = type.GetMethod("get_templateVars", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_templateVars_2);
            args   = new Type[] { typeof(System.Collections.Generic.Dictionary <System.String, System.String>) };
            method = type.GetMethod("set_templateVars", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_templateVars_3);
            args   = new Type[] { typeof(System.String), typeof(System.String) };
            method = type.GetMethod("SetVar", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SetVar_4);
            args   = new Type[] {};
            method = type.GetMethod("FlushVars", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, FlushVars_5);
            args   = new Type[] {};
            method = type.GetMethod("get_textFormat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_textFormat_6);
            args   = new Type[] { typeof(FairyGUI.TextFormat) };
            method = type.GetMethod("set_textFormat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_textFormat_7);
            args   = new Type[] {};
            method = type.GetMethod("get_color", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_color_8);
            args   = new Type[] { typeof(UnityEngine.Color) };
            method = type.GetMethod("set_color", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_color_9);
            args   = new Type[] {};
            method = type.GetMethod("get_align", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_align_10);
            args   = new Type[] { typeof(FairyGUI.AlignType) };
            method = type.GetMethod("set_align", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_align_11);
            args   = new Type[] {};
            method = type.GetMethod("get_verticalAlign", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_verticalAlign_12);
            args   = new Type[] { typeof(FairyGUI.VertAlignType) };
            method = type.GetMethod("set_verticalAlign", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_verticalAlign_13);
            args   = new Type[] {};
            method = type.GetMethod("get_singleLine", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_singleLine_14);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_singleLine", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_singleLine_15);
            args   = new Type[] {};
            method = type.GetMethod("get_stroke", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_stroke_16);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_stroke", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_stroke_17);
            args   = new Type[] {};
            method = type.GetMethod("get_strokeColor", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_strokeColor_18);
            args   = new Type[] { typeof(UnityEngine.Color) };
            method = type.GetMethod("set_strokeColor", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_strokeColor_19);
            args   = new Type[] {};
            method = type.GetMethod("get_shadowOffset", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_shadowOffset_20);
            args   = new Type[] { typeof(UnityEngine.Vector2) };
            method = type.GetMethod("set_shadowOffset", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_shadowOffset_21);
            args   = new Type[] {};
            method = type.GetMethod("get_UBBEnabled", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_UBBEnabled_22);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_UBBEnabled", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_UBBEnabled_23);
            args   = new Type[] {};
            method = type.GetMethod("get_autoSize", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_autoSize_24);
            args   = new Type[] { typeof(FairyGUI.AutoSizeType) };
            method = type.GetMethod("set_autoSize", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_autoSize_25);
            args   = new Type[] {};
            method = type.GetMethod("get_textWidth", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_textWidth_26);
            args   = new Type[] {};
            method = type.GetMethod("get_textHeight", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_textHeight_27);
            args   = new Type[] { typeof(FairyGUI.Utils.XML) };
            method = type.GetMethod("Setup_BeforeAdd", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Setup_BeforeAdd_28);
            args   = new Type[] { typeof(FairyGUI.Utils.XML) };
            method = type.GetMethod("Setup_AfterAdd", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Setup_AfterAdd_29);



            app.RegisterCLRCreateDefaultInstance(type, () => new FairyGUI.GTextField());
            app.RegisterCLRCreateArrayInstance(type, s => new FairyGUI.GTextField[s]);

            args   = new Type[] {};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
コード例 #8
0
        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(System.Activator);

            args   = new Type[] { typeof(System.Type), typeof(System.Reflection.BindingFlags), typeof(System.Reflection.Binder), typeof(System.Object[]), typeof(System.Globalization.CultureInfo) };
            method = type.GetMethod("CreateInstance", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CreateInstance_0);
            args   = new Type[] { typeof(System.Type), typeof(System.Reflection.BindingFlags), typeof(System.Reflection.Binder), typeof(System.Object[]), typeof(System.Globalization.CultureInfo), typeof(System.Object[]) };
            method = type.GetMethod("CreateInstance", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CreateInstance_1);
            args   = new Type[] { typeof(System.Type), typeof(System.Object[]) };
            method = type.GetMethod("CreateInstance", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CreateInstance_2);
            args   = new Type[] { typeof(System.Type), typeof(System.Object[]), typeof(System.Object[]) };
            method = type.GetMethod("CreateInstance", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CreateInstance_3);
            args   = new Type[] { typeof(System.Type) };
            method = type.GetMethod("CreateInstance", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CreateInstance_4);
            args   = new Type[] { typeof(System.String), typeof(System.String) };
            method = type.GetMethod("CreateInstance", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CreateInstance_5);
            args   = new Type[] { typeof(System.String), typeof(System.String), typeof(System.Object[]) };
            method = type.GetMethod("CreateInstance", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CreateInstance_6);
            args   = new Type[] { typeof(System.Type), typeof(System.Boolean) };
            method = type.GetMethod("CreateInstance", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CreateInstance_7);
            args   = new Type[] { typeof(System.String), typeof(System.String) };
            method = type.GetMethod("CreateInstanceFrom", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CreateInstanceFrom_8);
            args   = new Type[] { typeof(System.String), typeof(System.String), typeof(System.Object[]) };
            method = type.GetMethod("CreateInstanceFrom", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CreateInstanceFrom_9);
            args   = new Type[] { typeof(System.String), typeof(System.String), typeof(System.Boolean), typeof(System.Reflection.BindingFlags), typeof(System.Reflection.Binder), typeof(System.Object[]), typeof(System.Globalization.CultureInfo), typeof(System.Object[]) };
            method = type.GetMethod("CreateInstance", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CreateInstance_10);
            args   = new Type[] { typeof(System.String), typeof(System.String), typeof(System.Boolean), typeof(System.Reflection.BindingFlags), typeof(System.Reflection.Binder), typeof(System.Object[]), typeof(System.Globalization.CultureInfo), typeof(System.Object[]) };
            method = type.GetMethod("CreateInstanceFrom", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CreateInstanceFrom_11);
            args   = new Type[] { typeof(System.AppDomain), typeof(System.String), typeof(System.String) };
            method = type.GetMethod("CreateInstance", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CreateInstance_12);
            args   = new Type[] { typeof(System.AppDomain), typeof(System.String), typeof(System.String), typeof(System.Boolean), typeof(System.Reflection.BindingFlags), typeof(System.Reflection.Binder), typeof(System.Object[]), typeof(System.Globalization.CultureInfo), typeof(System.Object[]) };
            method = type.GetMethod("CreateInstance", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CreateInstance_13);
            args   = new Type[] { typeof(System.AppDomain), typeof(System.String), typeof(System.String) };
            method = type.GetMethod("CreateInstanceFrom", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CreateInstanceFrom_14);
            args   = new Type[] { typeof(System.AppDomain), typeof(System.String), typeof(System.String), typeof(System.Boolean), typeof(System.Reflection.BindingFlags), typeof(System.Reflection.Binder), typeof(System.Object[]), typeof(System.Globalization.CultureInfo), typeof(System.Object[]) };
            method = type.GetMethod("CreateInstanceFrom", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CreateInstanceFrom_15);
            args   = new Type[] { typeof(System.String), typeof(System.String) };
            method = type.GetMethod("CreateComInstanceFrom", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CreateComInstanceFrom_16);
            args   = new Type[] { typeof(System.String), typeof(System.String), typeof(System.Byte[]), typeof(System.Configuration.Assemblies.AssemblyHashAlgorithm) };
            method = type.GetMethod("CreateComInstanceFrom", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CreateComInstanceFrom_17);
            args   = new Type[] { typeof(System.Type), typeof(System.String) };
            method = type.GetMethod("GetObject", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetObject_18);
            args   = new Type[] { typeof(System.Type), typeof(System.String), typeof(System.Object) };
            method = type.GetMethod("GetObject", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetObject_19);



            app.RegisterCLRCreateArrayInstance(type, s => new System.Activator[s]);
        }
コード例 #9
0
        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(UnityEngine.Texture);

            args   = new Type[] {};
            method = type.GetMethod("get_masterTextureLimit", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_masterTextureLimit_0);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_masterTextureLimit", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_masterTextureLimit_1);
            args   = new Type[] {};
            method = type.GetMethod("get_anisotropicFiltering", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_anisotropicFiltering_2);
            args   = new Type[] { typeof(UnityEngine.AnisotropicFiltering) };
            method = type.GetMethod("set_anisotropicFiltering", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_anisotropicFiltering_3);
            args   = new Type[] { typeof(System.Int32), typeof(System.Int32) };
            method = type.GetMethod("SetGlobalAnisotropicFilteringLimits", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SetGlobalAnisotropicFilteringLimits_4);
            args   = new Type[] {};
            method = type.GetMethod("get_graphicsFormat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_graphicsFormat_5);
            args   = new Type[] {};
            method = type.GetMethod("get_width", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_width_6);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_width", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_width_7);
            args   = new Type[] {};
            method = type.GetMethod("get_height", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_height_8);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_height", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_height_9);
            args   = new Type[] {};
            method = type.GetMethod("get_dimension", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_dimension_10);
            args   = new Type[] { typeof(UnityEngine.Rendering.TextureDimension) };
            method = type.GetMethod("set_dimension", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_dimension_11);
            args   = new Type[] {};
            method = type.GetMethod("get_isReadable", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_isReadable_12);
            args   = new Type[] {};
            method = type.GetMethod("get_wrapMode", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_wrapMode_13);
            args   = new Type[] { typeof(UnityEngine.TextureWrapMode) };
            method = type.GetMethod("set_wrapMode", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_wrapMode_14);
            args   = new Type[] {};
            method = type.GetMethod("get_wrapModeU", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_wrapModeU_15);
            args   = new Type[] { typeof(UnityEngine.TextureWrapMode) };
            method = type.GetMethod("set_wrapModeU", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_wrapModeU_16);
            args   = new Type[] {};
            method = type.GetMethod("get_wrapModeV", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_wrapModeV_17);
            args   = new Type[] { typeof(UnityEngine.TextureWrapMode) };
            method = type.GetMethod("set_wrapModeV", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_wrapModeV_18);
            args   = new Type[] {};
            method = type.GetMethod("get_wrapModeW", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_wrapModeW_19);
            args   = new Type[] { typeof(UnityEngine.TextureWrapMode) };
            method = type.GetMethod("set_wrapModeW", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_wrapModeW_20);
            args   = new Type[] {};
            method = type.GetMethod("get_filterMode", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_filterMode_21);
            args   = new Type[] { typeof(UnityEngine.FilterMode) };
            method = type.GetMethod("set_filterMode", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_filterMode_22);
            args   = new Type[] {};
            method = type.GetMethod("get_anisoLevel", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_anisoLevel_23);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_anisoLevel", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_anisoLevel_24);
            args   = new Type[] {};
            method = type.GetMethod("get_mipMapBias", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_mipMapBias_25);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("set_mipMapBias", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_mipMapBias_26);
            args   = new Type[] {};
            method = type.GetMethod("get_texelSize", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_texelSize_27);
            args   = new Type[] {};
            method = type.GetMethod("get_updateCount", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_updateCount_28);
            args   = new Type[] {};
            method = type.GetMethod("IncrementUpdateCount", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, IncrementUpdateCount_29);
            args   = new Type[] {};
            method = type.GetMethod("get_totalTextureMemory", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_totalTextureMemory_30);
            args   = new Type[] {};
            method = type.GetMethod("get_desiredTextureMemory", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_desiredTextureMemory_31);
            args   = new Type[] {};
            method = type.GetMethod("get_targetTextureMemory", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_targetTextureMemory_32);
            args   = new Type[] {};
            method = type.GetMethod("get_currentTextureMemory", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_currentTextureMemory_33);
            args   = new Type[] {};
            method = type.GetMethod("get_nonStreamingTextureMemory", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_nonStreamingTextureMemory_34);
            args   = new Type[] {};
            method = type.GetMethod("get_streamingMipmapUploadCount", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_streamingMipmapUploadCount_35);
            args   = new Type[] {};
            method = type.GetMethod("get_streamingRendererCount", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_streamingRendererCount_36);
            args   = new Type[] {};
            method = type.GetMethod("get_streamingTextureCount", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_streamingTextureCount_37);
            args   = new Type[] {};
            method = type.GetMethod("get_nonStreamingTextureCount", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_nonStreamingTextureCount_38);
            args   = new Type[] {};
            method = type.GetMethod("get_streamingTexturePendingLoadCount", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_streamingTexturePendingLoadCount_39);
            args   = new Type[] {};
            method = type.GetMethod("get_streamingTextureLoadingCount", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_streamingTextureLoadingCount_40);
            args   = new Type[] {};
            method = type.GetMethod("SetStreamingTextureMaterialDebugProperties", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SetStreamingTextureMaterialDebugProperties_41);
            args   = new Type[] {};
            method = type.GetMethod("get_streamingTextureForceLoadAll", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_streamingTextureForceLoadAll_42);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_streamingTextureForceLoadAll", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_streamingTextureForceLoadAll_43);
            args   = new Type[] {};
            method = type.GetMethod("get_streamingTextureDiscardUnusedMips", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_streamingTextureDiscardUnusedMips_44);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_streamingTextureDiscardUnusedMips", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_streamingTextureDiscardUnusedMips_45);
            args   = new Type[] {};
            method = type.GetMethod("get_allowThreadedTextureCreation", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_allowThreadedTextureCreation_46);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_allowThreadedTextureCreation", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_allowThreadedTextureCreation_47);



            app.RegisterCLRCreateArrayInstance(type, s => new UnityEngine.Texture[s]);
        }
コード例 #10
0
        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(System.String);

            args   = new Type[] { typeof(System.Int32), typeof(System.Int32) };
            method = type.GetMethod("Substring", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Substring_0);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("get_Chars", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Chars_1);
            args   = new Type[] { typeof(System.String), typeof(System.String), typeof(System.String) };
            method = type.GetMethod("Concat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Concat_2);
            args   = new Type[] { typeof(System.String), typeof(System.String) };
            method = type.GetMethod("Concat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Concat_3);
            args   = new Type[] { typeof(System.String), typeof(System.Object), typeof(System.Object) };
            method = type.GetMethod("Format", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Format_4);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("IsNullOrEmpty", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, IsNullOrEmpty_5);
            args   = new Type[] { typeof(System.Object), typeof(System.Object) };
            method = type.GetMethod("Concat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Concat_6);
            args   = new Type[] { typeof(System.Object[]) };
            method = type.GetMethod("Concat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Concat_7);
            args   = new Type[] { typeof(System.String), typeof(System.Object) };
            method = type.GetMethod("Format", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Format_8);
            args   = new Type[] { typeof(System.String), typeof(System.String), typeof(System.String), typeof(System.String) };
            method = type.GetMethod("Concat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Concat_9);
            args   = new Type[] { typeof(System.Object), typeof(System.Object), typeof(System.Object) };
            method = type.GetMethod("Concat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Concat_10);
            args   = new Type[] { typeof(System.Char[]) };
            method = type.GetMethod("Split", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Split_11);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("Contains", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Contains_12);
            args   = new Type[] {};
            method = type.GetMethod("get_Length", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Length_13);
            args   = new Type[] { typeof(System.String), typeof(System.String) };
            method = type.GetMethod("op_Equality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Equality_14);
            args   = new Type[] { typeof(System.String), typeof(System.String) };
            method = type.GetMethod("op_Inequality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Inequality_15);
            args   = new Type[] { typeof(System.String), typeof(System.Object[]) };
            method = type.GetMethod("Format", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Format_16);
            args   = new Type[] { typeof(System.String), typeof(System.Object), typeof(System.Object), typeof(System.Object) };
            method = type.GetMethod("Format", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Format_17);
            args   = new Type[] { typeof(System.String[]), typeof(System.StringSplitOptions) };
            method = type.GetMethod("Split", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Split_18);
            args   = new Type[] {};
            method = type.GetMethod("Trim", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Trim_19);

            field = type.GetField("Empty", flag);
            app.RegisterCLRFieldGetter(field, get_Empty_0);

            app.RegisterCLRCreateArrayInstance(type, s => new System.String[s]);
        }
コード例 #11
0
        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(System.String);
            Dictionary <string, List <MethodInfo> > genericMethods = new Dictionary <string, List <MethodInfo> >();
            List <MethodInfo> lst = null;

            foreach (var m in type.GetMethods())
            {
                if (m.IsGenericMethodDefinition)
                {
                    if (!genericMethods.TryGetValue(m.Name, out lst))
                    {
                        lst = new List <MethodInfo>();
                        genericMethods[m.Name] = lst;
                    }
                    lst.Add(m);
                }
            }
            args = new Type[] { typeof(System.Type) };
            if (genericMethods.TryGetValue("Join", out lst))
            {
                foreach (var m in lst)
                {
                    if (m.MatchGenericParameters(args, typeof(System.String), typeof(System.String), typeof(System.Collections.Generic.IEnumerable <System.Type>)))
                    {
                        method = m.MakeGenericMethod(args);
                        app.RegisterCLRMethodRedirection(method, Join_0);

                        break;
                    }
                }
            }
            args   = new Type[] { typeof(System.String), typeof(System.String), typeof(System.String) };
            method = type.GetMethod("Concat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Concat_1);
            args   = new Type[] { typeof(System.String), typeof(System.Object), typeof(System.Object) };
            method = type.GetMethod("Format", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Format_2);
            args   = new Type[] { typeof(System.String), typeof(System.String), typeof(System.String), typeof(System.String) };
            method = type.GetMethod("Concat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Concat_3);
            args   = new Type[] { typeof(System.String), typeof(System.String) };
            method = type.GetMethod("Concat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Concat_4);
            args   = new Type[] { typeof(System.String[]) };
            method = type.GetMethod("Concat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Concat_5);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("IsNullOrEmpty", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, IsNullOrEmpty_6);
            args   = new Type[] { typeof(System.String), typeof(System.Object) };
            method = type.GetMethod("Format", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Format_7);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("Equals", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Equals_8);
            args   = new Type[] { typeof(System.String), typeof(System.Object[]) };
            method = type.GetMethod("Format", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Format_9);
            args   = new Type[] { typeof(System.String), typeof(System.String) };
            method = type.GetMethod("op_Equality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Equality_10);
            args   = new Type[] {};
            method = type.GetMethod("get_Length", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Length_11);
            args   = new Type[] { typeof(System.String), typeof(System.Object), typeof(System.Object), typeof(System.Object) };
            method = type.GetMethod("Format", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Format_12);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("Contains", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Contains_13);
            args   = new Type[] { typeof(System.String), typeof(System.String) };
            method = type.GetMethod("Replace", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Replace_14);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("IndexOf", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, IndexOf_15);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("Substring", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Substring_16);

            app.RegisterCLRCreateArrayInstance(type, s => new System.String[s]);
        }
コード例 #12
0
        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(System.Type);

            args   = new Type[] {};
            method = type.GetMethod("GetMembers", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetMembers_0);
            args   = new Type[] { typeof(System.RuntimeTypeHandle) };
            method = type.GetMethod("GetTypeFromHandle", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetTypeFromHandle_1);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("GetField", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetField_2);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("GetProperty", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetProperty_3);
            args   = new Type[] {};
            method = type.GetMethod("get_IsGenericType", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsGenericType_4);
            args   = new Type[] {};
            method = type.GetMethod("GetGenericTypeDefinition", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetGenericTypeDefinition_5);
            args   = new Type[] { typeof(System.Type) };
            method = type.GetMethod("IsAssignableFrom", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, IsAssignableFrom_6);
            args   = new Type[] {};
            method = type.GetMethod("get_IsArray", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsArray_7);
            args   = new Type[] {};
            method = type.GetMethod("get_IsClass", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsClass_8);
            args   = new Type[] { typeof(System.Type), typeof(System.Type) };
            method = type.GetMethod("op_Equality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Equality_9);
            args   = new Type[] { typeof(System.Reflection.BindingFlags) };
            method = type.GetMethod("GetProperties", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetProperties_10);
            args   = new Type[] { typeof(System.Reflection.BindingFlags) };
            method = type.GetMethod("GetFields", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetFields_11);
            args   = new Type[] {};
            method = type.GetMethod("get_IsPrimitive", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsPrimitive_12);
            args   = new Type[] { typeof(System.Type) };
            method = type.GetMethod("Equals", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Equals_13);
            args   = new Type[] { typeof(System.Type[]) };
            method = type.GetMethod("GetConstructor", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetConstructor_14);
            args   = new Type[] { typeof(System.String), typeof(System.Reflection.BindingFlags), typeof(System.Reflection.Binder), typeof(System.Object), typeof(System.Object[]) };
            method = type.GetMethod("InvokeMember", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, InvokeMember_15);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("GetType", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetType_16);
            args   = new Type[] {};
            method = type.GetMethod("get_BaseType", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_BaseType_17);
            args   = new Type[] { typeof(System.Type), typeof(System.Type) };
            method = type.GetMethod("op_Inequality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Inequality_18);
            args   = new Type[] { typeof(System.String), typeof(System.Reflection.BindingFlags) };
            method = type.GetMethod("GetField", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetField_19);
            args   = new Type[] { typeof(System.String), typeof(System.Reflection.BindingFlags) };
            method = type.GetMethod("GetProperty", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetProperty_20);
            args   = new Type[] { typeof(System.Reflection.BindingFlags) };
            method = type.GetMethod("GetMethods", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetMethods_21);
            args   = new Type[] { typeof(System.Type) };
            method = type.GetMethod("IsSubclassOf", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, IsSubclassOf_22);
            args   = new Type[] {};
            method = type.GetMethod("get_FullName", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_FullName_23);
            args   = new Type[] { typeof(System.Reflection.BindingFlags) };
            method = type.GetMethod("GetMembers", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetMembers_24);
            args   = new Type[] {};
            method = type.GetMethod("get_IsEnum", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsEnum_25);
            args   = new Type[] {};
            method = type.GetMethod("GetElementType", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetElementType_26);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("GetInterface", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetInterface_27);
            args   = new Type[] {};
            method = type.GetMethod("GetGenericArguments", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetGenericArguments_28);
            args   = new Type[] { typeof(System.Reflection.BindingFlags), typeof(System.Reflection.Binder), typeof(System.Type[]), typeof(System.Reflection.ParameterModifier[]) };
            method = type.GetMethod("GetConstructor", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetConstructor_29);

            app.RegisterCLRCreateArrayInstance(type, s => new System.Type[s]);
        }
コード例 #13
0
        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(UnityEngine.Object);

            args   = new Type[] {};
            method = type.GetMethod("GetInstanceID", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetInstanceID_0);
            args   = new Type[] {};
            method = type.GetMethod("GetHashCode", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetHashCode_1);
            args   = new Type[] { typeof(System.Object) };
            method = type.GetMethod("Equals", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Equals_2);
            args   = new Type[] { typeof(UnityEngine.Object) };
            method = type.GetMethod("op_Implicit", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Implicit_3);
            args   = new Type[] {};
            method = type.GetMethod("get_name", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_name_4);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("set_name", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_name_5);
            args   = new Type[] { typeof(UnityEngine.Object), typeof(UnityEngine.Vector3), typeof(UnityEngine.Quaternion) };
            method = type.GetMethod("Instantiate", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Instantiate_6);
            args   = new Type[] { typeof(UnityEngine.Object), typeof(UnityEngine.Vector3), typeof(UnityEngine.Quaternion), typeof(UnityEngine.Transform) };
            method = type.GetMethod("Instantiate", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Instantiate_7);
            args   = new Type[] { typeof(UnityEngine.Object) };
            method = type.GetMethod("Instantiate", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Instantiate_8);
            args   = new Type[] { typeof(UnityEngine.Object), typeof(UnityEngine.Transform) };
            method = type.GetMethod("Instantiate", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Instantiate_9);
            args   = new Type[] { typeof(UnityEngine.Object), typeof(UnityEngine.Transform), typeof(System.Boolean) };
            method = type.GetMethod("Instantiate", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Instantiate_10);
            args   = new Type[] { typeof(UnityEngine.Object), typeof(System.Single) };
            method = type.GetMethod("Destroy", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Destroy_11);
            args   = new Type[] { typeof(UnityEngine.Object) };
            method = type.GetMethod("Destroy", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Destroy_12);
            args   = new Type[] { typeof(UnityEngine.Object), typeof(System.Boolean) };
            method = type.GetMethod("DestroyImmediate", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DestroyImmediate_13);
            args   = new Type[] { typeof(UnityEngine.Object) };
            method = type.GetMethod("DestroyImmediate", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DestroyImmediate_14);
            args   = new Type[] { typeof(System.Type) };
            method = type.GetMethod("FindObjectsOfType", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, FindObjectsOfType_15);
            args   = new Type[] { typeof(UnityEngine.Object) };
            method = type.GetMethod("DontDestroyOnLoad", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DontDestroyOnLoad_16);
            args   = new Type[] {};
            method = type.GetMethod("get_hideFlags", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_hideFlags_17);
            args   = new Type[] { typeof(UnityEngine.HideFlags) };
            method = type.GetMethod("set_hideFlags", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_hideFlags_18);
            args   = new Type[] { typeof(System.Type) };
            method = type.GetMethod("FindObjectOfType", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, FindObjectOfType_19);
            args   = new Type[] {};
            method = type.GetMethod("ToString", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToString_20);
            args   = new Type[] { typeof(UnityEngine.Object), typeof(UnityEngine.Object) };
            method = type.GetMethod("op_Equality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Equality_21);
            args   = new Type[] { typeof(UnityEngine.Object), typeof(UnityEngine.Object) };
            method = type.GetMethod("op_Inequality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Inequality_22);



            app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.Object());
            app.RegisterCLRCreateArrayInstance(type, s => new UnityEngine.Object[s]);

            args   = new Type[] {};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
コード例 #14
0
        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(UnityEngine.Canvas);

            args   = new Type[] {};
            method = type.GetMethod("get_renderMode", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_renderMode_0);
            args   = new Type[] { typeof(UnityEngine.RenderMode) };
            method = type.GetMethod("set_renderMode", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_renderMode_1);
            args   = new Type[] {};
            method = type.GetMethod("get_isRootCanvas", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_isRootCanvas_2);
            args   = new Type[] {};
            method = type.GetMethod("get_worldCamera", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_worldCamera_3);
            args   = new Type[] { typeof(UnityEngine.Camera) };
            method = type.GetMethod("set_worldCamera", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_worldCamera_4);
            args   = new Type[] {};
            method = type.GetMethod("get_pixelRect", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_pixelRect_5);
            args   = new Type[] {};
            method = type.GetMethod("get_scaleFactor", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_scaleFactor_6);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("set_scaleFactor", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_scaleFactor_7);
            args   = new Type[] {};
            method = type.GetMethod("get_referencePixelsPerUnit", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_referencePixelsPerUnit_8);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("set_referencePixelsPerUnit", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_referencePixelsPerUnit_9);
            args   = new Type[] {};
            method = type.GetMethod("get_overridePixelPerfect", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_overridePixelPerfect_10);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_overridePixelPerfect", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_overridePixelPerfect_11);
            args   = new Type[] {};
            method = type.GetMethod("get_pixelPerfect", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_pixelPerfect_12);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_pixelPerfect", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_pixelPerfect_13);
            args   = new Type[] {};
            method = type.GetMethod("get_planeDistance", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_planeDistance_14);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("set_planeDistance", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_planeDistance_15);
            args   = new Type[] {};
            method = type.GetMethod("get_renderOrder", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_renderOrder_16);
            args   = new Type[] {};
            method = type.GetMethod("get_overrideSorting", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_overrideSorting_17);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_overrideSorting", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_overrideSorting_18);
            args   = new Type[] {};
            method = type.GetMethod("get_sortingOrder", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_sortingOrder_19);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_sortingOrder", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_sortingOrder_20);
            args   = new Type[] {};
            method = type.GetMethod("get_targetDisplay", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_targetDisplay_21);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_targetDisplay", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_targetDisplay_22);
            args   = new Type[] {};
            method = type.GetMethod("get_normalizedSortingGridSize", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_normalizedSortingGridSize_23);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("set_normalizedSortingGridSize", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_normalizedSortingGridSize_24);
            args   = new Type[] {};
            method = type.GetMethod("get_sortingLayerID", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_sortingLayerID_25);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_sortingLayerID", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_sortingLayerID_26);
            args   = new Type[] {};
            method = type.GetMethod("get_cachedSortingLayerValue", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_cachedSortingLayerValue_27);
            args   = new Type[] {};
            method = type.GetMethod("get_additionalShaderChannels", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_additionalShaderChannels_28);
            args   = new Type[] { typeof(UnityEngine.AdditionalCanvasShaderChannels) };
            method = type.GetMethod("set_additionalShaderChannels", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_additionalShaderChannels_29);
            args   = new Type[] {};
            method = type.GetMethod("get_sortingLayerName", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_sortingLayerName_30);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("set_sortingLayerName", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_sortingLayerName_31);
            args   = new Type[] {};
            method = type.GetMethod("get_rootCanvas", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_rootCanvas_32);
            args   = new Type[] {};
            method = type.GetMethod("GetDefaultCanvasMaterial", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetDefaultCanvasMaterial_33);
            args   = new Type[] {};
            method = type.GetMethod("GetETC1SupportedCanvasMaterial", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetETC1SupportedCanvasMaterial_34);
            args   = new Type[] {};
            method = type.GetMethod("ForceUpdateCanvases", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ForceUpdateCanvases_35);



            app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.Canvas());
            app.RegisterCLRCreateArrayInstance(type, s => new UnityEngine.Canvas[s]);

            args   = new Type[] {};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
コード例 #15
0
        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(System.Enum);

            args   = new Type[] {};
            method = type.GetMethod("GetTypeCode", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetTypeCode_0);
            args   = new Type[] { typeof(System.Type) };
            method = type.GetMethod("GetValues", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetValues_1);
            args   = new Type[] { typeof(System.Type) };
            method = type.GetMethod("GetNames", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetNames_2);
            args   = new Type[] { typeof(System.Type), typeof(System.Object) };
            method = type.GetMethod("GetName", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetName_3);
            args   = new Type[] { typeof(System.Type), typeof(System.Object) };
            method = type.GetMethod("IsDefined", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, IsDefined_4);
            args   = new Type[] { typeof(System.Type) };
            method = type.GetMethod("GetUnderlyingType", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetUnderlyingType_5);
            args   = new Type[] { typeof(System.Type), typeof(System.String) };
            method = type.GetMethod("Parse", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Parse_6);
            args   = new Type[] { typeof(System.Type), typeof(System.String), typeof(System.Boolean) };
            method = type.GetMethod("Parse", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Parse_7);
            args   = new Type[] { typeof(System.Object) };
            method = type.GetMethod("CompareTo", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CompareTo_8);
            args   = new Type[] {};
            method = type.GetMethod("ToString", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToString_9);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("ToString", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToString_10);
            args   = new Type[] { typeof(System.Type), typeof(System.Byte) };
            method = type.GetMethod("ToObject", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToObject_11);
            args   = new Type[] { typeof(System.Type), typeof(System.Int16) };
            method = type.GetMethod("ToObject", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToObject_12);
            args   = new Type[] { typeof(System.Type), typeof(System.Int32) };
            method = type.GetMethod("ToObject", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToObject_13);
            args   = new Type[] { typeof(System.Type), typeof(System.Int64) };
            method = type.GetMethod("ToObject", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToObject_14);
            args   = new Type[] { typeof(System.Type), typeof(System.Object) };
            method = type.GetMethod("ToObject", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToObject_15);
            args   = new Type[] { typeof(System.Type), typeof(System.SByte) };
            method = type.GetMethod("ToObject", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToObject_16);
            args   = new Type[] { typeof(System.Type), typeof(System.UInt16) };
            method = type.GetMethod("ToObject", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToObject_17);
            args   = new Type[] { typeof(System.Type), typeof(System.UInt32) };
            method = type.GetMethod("ToObject", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToObject_18);
            args   = new Type[] { typeof(System.Type), typeof(System.UInt64) };
            method = type.GetMethod("ToObject", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToObject_19);
            args   = new Type[] { typeof(System.Object) };
            method = type.GetMethod("Equals", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Equals_20);
            args   = new Type[] {};
            method = type.GetMethod("GetHashCode", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetHashCode_21);
            args   = new Type[] { typeof(System.Type), typeof(System.Object), typeof(System.String) };
            method = type.GetMethod("Format", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Format_22);



            app.RegisterCLRCreateArrayInstance(type, s => new System.Enum[s]);
        }
コード例 #16
0
        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(FairyGUI.NTexture);

            args   = new Type[] {};
            method = type.GetMethod("get_Empty", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Empty_0);
            args   = new Type[] {};
            method = type.GetMethod("DisposeEmpty", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DisposeEmpty_1);
            args   = new Type[] {};
            method = type.GetMethod("get_width", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_width_2);
            args   = new Type[] {};
            method = type.GetMethod("get_height", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_height_3);
            args   = new Type[] {};
            method = type.GetMethod("get_offset", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_offset_4);
            args   = new Type[] {};
            method = type.GetMethod("get_originalSize", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_originalSize_5);
            args   = new Type[] { typeof(UnityEngine.Rect) };
            method = type.GetMethod("GetDrawRect", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetDrawRect_6);
            args   = new Type[] { typeof(UnityEngine.Vector2[]) };
            method = type.GetMethod("GetUV", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetUV_7);
            args   = new Type[] {};
            method = type.GetMethod("get_root", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_root_8);
            args   = new Type[] {};
            method = type.GetMethod("get_disposed", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_disposed_9);
            args   = new Type[] {};
            method = type.GetMethod("get_nativeTexture", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_nativeTexture_10);
            args   = new Type[] {};
            method = type.GetMethod("get_alphaTexture", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_alphaTexture_11);
            args   = new Type[] { typeof(System.String), typeof(System.String[]) };
            method = type.GetMethod("GetMaterialManager", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetMaterialManager_12);
            args   = new Type[] { typeof(FairyGUI.MaterialManager) };
            method = type.GetMethod("DestroyMaterialManager", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DestroyMaterialManager_13);
            args   = new Type[] {};
            method = type.GetMethod("Unload", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Unload_14);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("Unload", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Unload_15);
            args   = new Type[] { typeof(UnityEngine.Texture), typeof(UnityEngine.Texture) };
            method = type.GetMethod("Reload", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Reload_16);
            args   = new Type[] {};
            method = type.GetMethod("Dispose", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Dispose_17);

            field = type.GetField("uvRect", flag);
            app.RegisterCLRFieldGetter(field, get_uvRect_0);
            app.RegisterCLRFieldSetter(field, set_uvRect_0);
            field = type.GetField("rotated", flag);
            app.RegisterCLRFieldGetter(field, get_rotated_1);
            app.RegisterCLRFieldSetter(field, set_rotated_1);
            field = type.GetField("refCount", flag);
            app.RegisterCLRFieldGetter(field, get_refCount_2);
            app.RegisterCLRFieldSetter(field, set_refCount_2);
            field = type.GetField("lastActive", flag);
            app.RegisterCLRFieldGetter(field, get_lastActive_3);
            app.RegisterCLRFieldSetter(field, set_lastActive_3);
            field = type.GetField("destroyMethod", flag);
            app.RegisterCLRFieldGetter(field, get_destroyMethod_4);
            app.RegisterCLRFieldSetter(field, set_destroyMethod_4);


            app.RegisterCLRCreateArrayInstance(type, s => new FairyGUI.NTexture[s]);

            args   = new Type[] { typeof(UnityEngine.Texture) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
            args   = new Type[] { typeof(UnityEngine.Texture), typeof(UnityEngine.Texture), typeof(System.Single), typeof(System.Single) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_1);
            args   = new Type[] { typeof(UnityEngine.Texture), typeof(UnityEngine.Rect) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_2);
            args   = new Type[] { typeof(FairyGUI.NTexture), typeof(UnityEngine.Rect), typeof(System.Boolean) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_3);
            args   = new Type[] { typeof(FairyGUI.NTexture), typeof(UnityEngine.Rect), typeof(System.Boolean), typeof(UnityEngine.Vector2), typeof(UnityEngine.Vector2) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_4);
            args   = new Type[] { typeof(UnityEngine.Sprite) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_5);
        }
コード例 #17
0
        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(UnityEngine.Random);

            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("InitState", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, InitState_0);
            args   = new Type[] {};
            method = type.GetMethod("get_state", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_state_1);
            args   = new Type[] { typeof(UnityEngine.Random.State) };
            method = type.GetMethod("set_state", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_state_2);
            args   = new Type[] { typeof(System.Single), typeof(System.Single) };
            method = type.GetMethod("Range", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Range_3);
            args   = new Type[] { typeof(System.Int32), typeof(System.Int32) };
            method = type.GetMethod("Range", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Range_4);
            args   = new Type[] {};
            method = type.GetMethod("get_value", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_value_5);
            args   = new Type[] {};
            method = type.GetMethod("get_insideUnitSphere", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_insideUnitSphere_6);
            args   = new Type[] {};
            method = type.GetMethod("get_insideUnitCircle", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_insideUnitCircle_7);
            args   = new Type[] {};
            method = type.GetMethod("get_onUnitSphere", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_onUnitSphere_8);
            args   = new Type[] {};
            method = type.GetMethod("get_rotation", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_rotation_9);
            args   = new Type[] {};
            method = type.GetMethod("get_rotationUniform", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_rotationUniform_10);
            args   = new Type[] {};
            method = type.GetMethod("ColorHSV", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ColorHSV_11);
            args   = new Type[] { typeof(System.Single), typeof(System.Single) };
            method = type.GetMethod("ColorHSV", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ColorHSV_12);
            args   = new Type[] { typeof(System.Single), typeof(System.Single), typeof(System.Single), typeof(System.Single) };
            method = type.GetMethod("ColorHSV", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ColorHSV_13);
            args   = new Type[] { typeof(System.Single), typeof(System.Single), typeof(System.Single), typeof(System.Single), typeof(System.Single), typeof(System.Single) };
            method = type.GetMethod("ColorHSV", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ColorHSV_14);
            args   = new Type[] { typeof(System.Single), typeof(System.Single), typeof(System.Single), typeof(System.Single), typeof(System.Single), typeof(System.Single), typeof(System.Single), typeof(System.Single) };
            method = type.GetMethod("ColorHSV", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ColorHSV_15);



            app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.Random());
            app.RegisterCLRCreateArrayInstance(type, s => new UnityEngine.Random[s]);

            args   = new Type[] {};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
        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(UnityEngine.EventSystems.PointerEventData);

            args   = new Type[] {};
            method = type.GetMethod("get_pointerEnter", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_pointerEnter_0);
            args   = new Type[] { typeof(UnityEngine.GameObject) };
            method = type.GetMethod("set_pointerEnter", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_pointerEnter_1);
            args   = new Type[] {};
            method = type.GetMethod("get_lastPress", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_lastPress_2);
            args   = new Type[] {};
            method = type.GetMethod("get_rawPointerPress", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_rawPointerPress_3);
            args   = new Type[] { typeof(UnityEngine.GameObject) };
            method = type.GetMethod("set_rawPointerPress", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_rawPointerPress_4);
            args   = new Type[] {};
            method = type.GetMethod("get_pointerDrag", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_pointerDrag_5);
            args   = new Type[] { typeof(UnityEngine.GameObject) };
            method = type.GetMethod("set_pointerDrag", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_pointerDrag_6);
            args   = new Type[] {};
            method = type.GetMethod("get_pointerCurrentRaycast", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_pointerCurrentRaycast_7);
            args   = new Type[] { typeof(UnityEngine.EventSystems.RaycastResult) };
            method = type.GetMethod("set_pointerCurrentRaycast", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_pointerCurrentRaycast_8);
            args   = new Type[] {};
            method = type.GetMethod("get_pointerPressRaycast", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_pointerPressRaycast_9);
            args   = new Type[] { typeof(UnityEngine.EventSystems.RaycastResult) };
            method = type.GetMethod("set_pointerPressRaycast", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_pointerPressRaycast_10);
            args   = new Type[] {};
            method = type.GetMethod("get_eligibleForClick", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_eligibleForClick_11);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_eligibleForClick", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_eligibleForClick_12);
            args   = new Type[] {};
            method = type.GetMethod("get_pointerId", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_pointerId_13);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_pointerId", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_pointerId_14);
            args   = new Type[] {};
            method = type.GetMethod("get_position", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_position_15);
            args   = new Type[] { typeof(UnityEngine.Vector2) };
            method = type.GetMethod("set_position", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_position_16);
            args   = new Type[] {};
            method = type.GetMethod("get_delta", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_delta_17);
            args   = new Type[] { typeof(UnityEngine.Vector2) };
            method = type.GetMethod("set_delta", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_delta_18);
            args   = new Type[] {};
            method = type.GetMethod("get_pressPosition", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_pressPosition_19);
            args   = new Type[] { typeof(UnityEngine.Vector2) };
            method = type.GetMethod("set_pressPosition", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_pressPosition_20);
            args   = new Type[] {};
            method = type.GetMethod("get_clickTime", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_clickTime_21);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("set_clickTime", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_clickTime_22);
            args   = new Type[] {};
            method = type.GetMethod("get_clickCount", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_clickCount_23);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_clickCount", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_clickCount_24);
            args   = new Type[] {};
            method = type.GetMethod("get_scrollDelta", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_scrollDelta_25);
            args   = new Type[] { typeof(UnityEngine.Vector2) };
            method = type.GetMethod("set_scrollDelta", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_scrollDelta_26);
            args   = new Type[] {};
            method = type.GetMethod("get_useDragThreshold", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_useDragThreshold_27);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_useDragThreshold", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_useDragThreshold_28);
            args   = new Type[] {};
            method = type.GetMethod("get_dragging", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_dragging_29);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_dragging", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_dragging_30);
            args   = new Type[] {};
            method = type.GetMethod("get_button", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_button_31);
            args   = new Type[] { typeof(UnityEngine.EventSystems.PointerEventData.InputButton) };
            method = type.GetMethod("set_button", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_button_32);
            args   = new Type[] {};
            method = type.GetMethod("IsPointerMoving", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, IsPointerMoving_33);
            args   = new Type[] {};
            method = type.GetMethod("IsScrolling", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, IsScrolling_34);
            args   = new Type[] {};
            method = type.GetMethod("get_enterEventCamera", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_enterEventCamera_35);
            args   = new Type[] {};
            method = type.GetMethod("get_pressEventCamera", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_pressEventCamera_36);
            args   = new Type[] {};
            method = type.GetMethod("get_pointerPress", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_pointerPress_37);
            args   = new Type[] { typeof(UnityEngine.GameObject) };
            method = type.GetMethod("set_pointerPress", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_pointerPress_38);
            args   = new Type[] {};
            method = type.GetMethod("ToString", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToString_39);

            field = type.GetField("hovered", flag);
            app.RegisterCLRFieldGetter(field, get_hovered_0);
            app.RegisterCLRFieldSetter(field, set_hovered_0);


            app.RegisterCLRCreateArrayInstance(type, s => new UnityEngine.EventSystems.PointerEventData[s]);

            args   = new Type[] { typeof(UnityEngine.EventSystems.EventSystem) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
コード例 #19
0
        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(System.Reflection.FieldInfo);

            args   = new Type[] {};
            method = type.GetMethod("get_Attributes", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Attributes_0);
            args   = new Type[] {};
            method = type.GetMethod("get_FieldHandle", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_FieldHandle_1);
            args   = new Type[] {};
            method = type.GetMethod("get_FieldType", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_FieldType_2);
            args   = new Type[] { typeof(System.Object) };
            method = type.GetMethod("GetValue", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetValue_3);
            args   = new Type[] {};
            method = type.GetMethod("get_MemberType", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_MemberType_4);
            args   = new Type[] {};
            method = type.GetMethod("get_IsLiteral", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsLiteral_5);
            args   = new Type[] {};
            method = type.GetMethod("get_IsStatic", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsStatic_6);
            args   = new Type[] {};
            method = type.GetMethod("get_IsInitOnly", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsInitOnly_7);
            args   = new Type[] {};
            method = type.GetMethod("get_IsPublic", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsPublic_8);
            args   = new Type[] {};
            method = type.GetMethod("get_IsPrivate", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsPrivate_9);
            args   = new Type[] {};
            method = type.GetMethod("get_IsFamily", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsFamily_10);
            args   = new Type[] {};
            method = type.GetMethod("get_IsAssembly", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsAssembly_11);
            args   = new Type[] {};
            method = type.GetMethod("get_IsFamilyAndAssembly", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsFamilyAndAssembly_12);
            args   = new Type[] {};
            method = type.GetMethod("get_IsFamilyOrAssembly", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsFamilyOrAssembly_13);
            args   = new Type[] {};
            method = type.GetMethod("get_IsPinvokeImpl", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsPinvokeImpl_14);
            args   = new Type[] {};
            method = type.GetMethod("get_IsSpecialName", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsSpecialName_15);
            args   = new Type[] {};
            method = type.GetMethod("get_IsNotSerialized", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsNotSerialized_16);
            args   = new Type[] { typeof(System.Object), typeof(System.Object), typeof(System.Reflection.BindingFlags), typeof(System.Reflection.Binder), typeof(System.Globalization.CultureInfo) };
            method = type.GetMethod("SetValue", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SetValue_17);
            args   = new Type[] { typeof(System.Object), typeof(System.Object) };
            method = type.GetMethod("SetValue", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SetValue_18);
            args   = new Type[] { typeof(System.RuntimeFieldHandle) };
            method = type.GetMethod("GetFieldFromHandle", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetFieldFromHandle_19);
            args   = new Type[] { typeof(System.RuntimeFieldHandle), typeof(System.RuntimeTypeHandle) };
            method = type.GetMethod("GetFieldFromHandle", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetFieldFromHandle_20);
            args   = new Type[] {};
            method = type.GetMethod("GetOptionalCustomModifiers", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetOptionalCustomModifiers_21);
            args   = new Type[] {};
            method = type.GetMethod("GetRequiredCustomModifiers", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetRequiredCustomModifiers_22);
            args   = new Type[] {};
            method = type.GetMethod("GetRawConstantValue", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetRawConstantValue_23);



            app.RegisterCLRCreateArrayInstance(type, s => new System.Reflection.FieldInfo[s]);
        }
コード例 #20
0
        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(System.Int32);

            args   = new Type[] { typeof(System.Object) };
            method = type.GetMethod("CompareTo", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CompareTo_0);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("CompareTo", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CompareTo_1);
            args   = new Type[] { typeof(System.Object) };
            method = type.GetMethod("Equals", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Equals_2);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("Equals", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Equals_3);
            args   = new Type[] {};
            method = type.GetMethod("GetHashCode", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetHashCode_4);
            args   = new Type[] {};
            method = type.GetMethod("ToString", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToString_5);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("ToString", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToString_6);
            args   = new Type[] { typeof(System.IFormatProvider) };
            method = type.GetMethod("ToString", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToString_7);
            args   = new Type[] { typeof(System.String), typeof(System.IFormatProvider) };
            method = type.GetMethod("ToString", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToString_8);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("Parse", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Parse_9);
            args   = new Type[] { typeof(System.String), typeof(System.Globalization.NumberStyles) };
            method = type.GetMethod("Parse", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Parse_10);
            args   = new Type[] { typeof(System.String), typeof(System.IFormatProvider) };
            method = type.GetMethod("Parse", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Parse_11);
            args   = new Type[] { typeof(System.String), typeof(System.Globalization.NumberStyles), typeof(System.IFormatProvider) };
            method = type.GetMethod("Parse", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Parse_12);
            args   = new Type[] { typeof(System.String), typeof(System.Int32).MakeByRefType() };
            method = type.GetMethod("TryParse", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, TryParse_13);
            args   = new Type[] { typeof(System.String), typeof(System.Globalization.NumberStyles), typeof(System.IFormatProvider), typeof(System.Int32).MakeByRefType() };
            method = type.GetMethod("TryParse", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, TryParse_14);
            args   = new Type[] {};
            method = type.GetMethod("GetTypeCode", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetTypeCode_15);

            field = type.GetField("MaxValue", flag);
            app.RegisterCLRFieldGetter(field, get_MaxValue_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_MaxValue_0, null);
            field = type.GetField("MinValue", flag);
            app.RegisterCLRFieldGetter(field, get_MinValue_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_MinValue_1, null);


            app.RegisterCLRCreateArrayInstance(type, s => new System.Int32[s]);
        }
コード例 #21
0
        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(UnityEngine.UI.Image);

            args   = new Type[] {};
            method = type.GetMethod("get_sprite", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_sprite_0);
            args   = new Type[] { typeof(UnityEngine.Sprite) };
            method = type.GetMethod("set_sprite", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_sprite_1);
            args   = new Type[] {};
            method = type.GetMethod("get_overrideSprite", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_overrideSprite_2);
            args   = new Type[] { typeof(UnityEngine.Sprite) };
            method = type.GetMethod("set_overrideSprite", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_overrideSprite_3);
            args   = new Type[] {};
            method = type.GetMethod("get_type", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_type_4);
            args   = new Type[] { typeof(UnityEngine.UI.Image.Type) };
            method = type.GetMethod("set_type", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_type_5);
            args   = new Type[] {};
            method = type.GetMethod("get_preserveAspect", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_preserveAspect_6);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_preserveAspect", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_preserveAspect_7);
            args   = new Type[] {};
            method = type.GetMethod("get_fillCenter", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_fillCenter_8);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_fillCenter", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_fillCenter_9);
            args   = new Type[] {};
            method = type.GetMethod("get_fillMethod", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_fillMethod_10);
            args   = new Type[] { typeof(UnityEngine.UI.Image.FillMethod) };
            method = type.GetMethod("set_fillMethod", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_fillMethod_11);
            args   = new Type[] {};
            method = type.GetMethod("get_fillAmount", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_fillAmount_12);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("set_fillAmount", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_fillAmount_13);
            args   = new Type[] {};
            method = type.GetMethod("get_fillClockwise", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_fillClockwise_14);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_fillClockwise", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_fillClockwise_15);
            args   = new Type[] {};
            method = type.GetMethod("get_fillOrigin", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_fillOrigin_16);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_fillOrigin", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_fillOrigin_17);
            args   = new Type[] {};
            method = type.GetMethod("get_alphaHitTestMinimumThreshold", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_alphaHitTestMinimumThreshold_18);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("set_alphaHitTestMinimumThreshold", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_alphaHitTestMinimumThreshold_19);
            args   = new Type[] {};
            method = type.GetMethod("get_defaultETC1GraphicMaterial", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_defaultETC1GraphicMaterial_20);
            args   = new Type[] {};
            method = type.GetMethod("get_mainTexture", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_mainTexture_21);
            args   = new Type[] {};
            method = type.GetMethod("get_hasBorder", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_hasBorder_22);
            args   = new Type[] {};
            method = type.GetMethod("get_pixelsPerUnit", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_pixelsPerUnit_23);
            args   = new Type[] {};
            method = type.GetMethod("get_material", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_material_24);
            args   = new Type[] { typeof(UnityEngine.Material) };
            method = type.GetMethod("set_material", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_material_25);
            args   = new Type[] {};
            method = type.GetMethod("OnBeforeSerialize", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, OnBeforeSerialize_26);
            args   = new Type[] {};
            method = type.GetMethod("OnAfterDeserialize", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, OnAfterDeserialize_27);
            args   = new Type[] {};
            method = type.GetMethod("SetNativeSize", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SetNativeSize_28);
            args   = new Type[] {};
            method = type.GetMethod("CalculateLayoutInputHorizontal", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CalculateLayoutInputHorizontal_29);
            args   = new Type[] {};
            method = type.GetMethod("CalculateLayoutInputVertical", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CalculateLayoutInputVertical_30);
            args   = new Type[] {};
            method = type.GetMethod("get_minWidth", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_minWidth_31);
            args   = new Type[] {};
            method = type.GetMethod("get_preferredWidth", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_preferredWidth_32);
            args   = new Type[] {};
            method = type.GetMethod("get_flexibleWidth", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_flexibleWidth_33);
            args   = new Type[] {};
            method = type.GetMethod("get_minHeight", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_minHeight_34);
            args   = new Type[] {};
            method = type.GetMethod("get_preferredHeight", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_preferredHeight_35);
            args   = new Type[] {};
            method = type.GetMethod("get_flexibleHeight", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_flexibleHeight_36);
            args   = new Type[] {};
            method = type.GetMethod("get_layoutPriority", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_layoutPriority_37);
            args   = new Type[] { typeof(UnityEngine.Vector2), typeof(UnityEngine.Camera) };
            method = type.GetMethod("IsRaycastLocationValid", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, IsRaycastLocationValid_38);



            app.RegisterCLRCreateArrayInstance(type, s => new UnityEngine.UI.Image[s]);
        }
コード例 #22
0
        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(UnityEngine.Time);

            args   = new Type[] {};
            method = type.GetMethod("get_time", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_time_0);
            args   = new Type[] {};
            method = type.GetMethod("get_timeSinceLevelLoad", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_timeSinceLevelLoad_1);
            args   = new Type[] {};
            method = type.GetMethod("get_deltaTime", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_deltaTime_2);
            args   = new Type[] {};
            method = type.GetMethod("get_fixedTime", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_fixedTime_3);
            args   = new Type[] {};
            method = type.GetMethod("get_unscaledTime", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_unscaledTime_4);
            args   = new Type[] {};
            method = type.GetMethod("get_fixedUnscaledTime", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_fixedUnscaledTime_5);
            args   = new Type[] {};
            method = type.GetMethod("get_unscaledDeltaTime", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_unscaledDeltaTime_6);
            args   = new Type[] {};
            method = type.GetMethod("get_fixedUnscaledDeltaTime", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_fixedUnscaledDeltaTime_7);
            args   = new Type[] {};
            method = type.GetMethod("get_fixedDeltaTime", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_fixedDeltaTime_8);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("set_fixedDeltaTime", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_fixedDeltaTime_9);
            args   = new Type[] {};
            method = type.GetMethod("get_maximumDeltaTime", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_maximumDeltaTime_10);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("set_maximumDeltaTime", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_maximumDeltaTime_11);
            args   = new Type[] {};
            method = type.GetMethod("get_smoothDeltaTime", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_smoothDeltaTime_12);
            args   = new Type[] {};
            method = type.GetMethod("get_maximumParticleDeltaTime", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_maximumParticleDeltaTime_13);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("set_maximumParticleDeltaTime", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_maximumParticleDeltaTime_14);
            args   = new Type[] {};
            method = type.GetMethod("get_timeScale", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_timeScale_15);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("set_timeScale", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_timeScale_16);
            args   = new Type[] {};
            method = type.GetMethod("get_frameCount", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_frameCount_17);
            args   = new Type[] {};
            method = type.GetMethod("get_renderedFrameCount", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_renderedFrameCount_18);
            args   = new Type[] {};
            method = type.GetMethod("get_realtimeSinceStartup", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_realtimeSinceStartup_19);
            args   = new Type[] {};
            method = type.GetMethod("get_captureFramerate", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_captureFramerate_20);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_captureFramerate", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_captureFramerate_21);
            args   = new Type[] {};
            method = type.GetMethod("get_inFixedTimeStep", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_inFixedTimeStep_22);



            app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.Time());
            app.RegisterCLRCreateArrayInstance(type, s => new UnityEngine.Time[s]);

            args   = new Type[] {};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
コード例 #23
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            Type type = typeof(System.Object);

            app.RegisterCLRCreateArrayInstance(type, s => new System.Object[s]);
        }
コード例 #24
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            Type type = typeof(UnityEngine.Sprite);

            app.RegisterCLRCreateArrayInstance(type, s => new UnityEngine.Sprite[s]);
        }
コード例 #25
0
        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(System.Reflection.MethodBase);

            args   = new Type[] { typeof(System.RuntimeMethodHandle) };
            method = type.GetMethod("GetMethodFromHandle", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetMethodFromHandle_0);
            args   = new Type[] { typeof(System.RuntimeMethodHandle), typeof(System.RuntimeTypeHandle) };
            method = type.GetMethod("GetMethodFromHandle", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetMethodFromHandle_1);
            args   = new Type[] {};
            method = type.GetMethod("GetCurrentMethod", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetCurrentMethod_2);
            args   = new Type[] { typeof(System.Reflection.MethodBase), typeof(System.Reflection.MethodBase) };
            method = type.GetMethod("op_Equality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Equality_3);
            args   = new Type[] { typeof(System.Reflection.MethodBase), typeof(System.Reflection.MethodBase) };
            method = type.GetMethod("op_Inequality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Inequality_4);
            args   = new Type[] { typeof(System.Object) };
            method = type.GetMethod("Equals", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Equals_5);
            args   = new Type[] {};
            method = type.GetMethod("GetHashCode", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetHashCode_6);
            args   = new Type[] {};
            method = type.GetMethod("GetParameters", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetParameters_7);
            args   = new Type[] {};
            method = type.GetMethod("get_MethodImplementationFlags", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_MethodImplementationFlags_8);
            args   = new Type[] {};
            method = type.GetMethod("GetMethodImplementationFlags", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetMethodImplementationFlags_9);
            args   = new Type[] {};
            method = type.GetMethod("get_MethodHandle", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_MethodHandle_10);
            args   = new Type[] {};
            method = type.GetMethod("get_Attributes", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Attributes_11);
            args   = new Type[] { typeof(System.Object), typeof(System.Reflection.BindingFlags), typeof(System.Reflection.Binder), typeof(System.Object[]), typeof(System.Globalization.CultureInfo) };
            method = type.GetMethod("Invoke", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Invoke_12);
            args   = new Type[] {};
            method = type.GetMethod("get_CallingConvention", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_CallingConvention_13);
            args   = new Type[] {};
            method = type.GetMethod("GetGenericArguments", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetGenericArguments_14);
            args   = new Type[] {};
            method = type.GetMethod("get_IsGenericMethodDefinition", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsGenericMethodDefinition_15);
            args   = new Type[] {};
            method = type.GetMethod("get_ContainsGenericParameters", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_ContainsGenericParameters_16);
            args   = new Type[] {};
            method = type.GetMethod("get_IsGenericMethod", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsGenericMethod_17);
            args   = new Type[] {};
            method = type.GetMethod("get_IsSecurityCritical", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsSecurityCritical_18);
            args   = new Type[] {};
            method = type.GetMethod("get_IsSecuritySafeCritical", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsSecuritySafeCritical_19);
            args   = new Type[] {};
            method = type.GetMethod("get_IsSecurityTransparent", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsSecurityTransparent_20);
            args   = new Type[] { typeof(System.Object), typeof(System.Object[]) };
            method = type.GetMethod("Invoke", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Invoke_21);
            args   = new Type[] {};
            method = type.GetMethod("get_IsPublic", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsPublic_22);
            args   = new Type[] {};
            method = type.GetMethod("get_IsPrivate", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsPrivate_23);
            args   = new Type[] {};
            method = type.GetMethod("get_IsFamily", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsFamily_24);
            args   = new Type[] {};
            method = type.GetMethod("get_IsAssembly", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsAssembly_25);
            args   = new Type[] {};
            method = type.GetMethod("get_IsFamilyAndAssembly", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsFamilyAndAssembly_26);
            args   = new Type[] {};
            method = type.GetMethod("get_IsFamilyOrAssembly", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsFamilyOrAssembly_27);
            args   = new Type[] {};
            method = type.GetMethod("get_IsStatic", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsStatic_28);
            args   = new Type[] {};
            method = type.GetMethod("get_IsFinal", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsFinal_29);
            args   = new Type[] {};
            method = type.GetMethod("get_IsVirtual", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsVirtual_30);
            args   = new Type[] {};
            method = type.GetMethod("get_IsHideBySig", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsHideBySig_31);
            args   = new Type[] {};
            method = type.GetMethod("get_IsAbstract", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsAbstract_32);
            args   = new Type[] {};
            method = type.GetMethod("get_IsSpecialName", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsSpecialName_33);
            args   = new Type[] {};
            method = type.GetMethod("get_IsConstructor", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsConstructor_34);
            args   = new Type[] {};
            method = type.GetMethod("GetMethodBody", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetMethodBody_35);



            app.RegisterCLRCreateArrayInstance(type, s => new System.Reflection.MethodBase[s]);
        }
コード例 #26
0
        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(System.Collections.Generic.List <ILRuntime.Runtime.Intepreter.ILTypeInstance>);

            args   = new Type[] { typeof(ILRuntime.Runtime.Intepreter.ILTypeInstance) };
            method = type.GetMethod("Add", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Add_0);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("get_Item", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Item_1);
            args   = new Type[] {};
            method = type.GetMethod("get_Count", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Count_2);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("RemoveAt", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, RemoveAt_3);
            args   = new Type[] {};
            method = type.GetMethod("Clear", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Clear_4);
            args   = new Type[] {};
            method = type.GetMethod("ToArray", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToArray_5);
            args   = new Type[] { typeof(System.Int32), typeof(ILRuntime.Runtime.Intepreter.ILTypeInstance) };
            method = type.GetMethod("set_Item", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_Item_6);
            args   = new Type[] { typeof(System.Predicate <ILRuntime.Runtime.Intepreter.ILTypeInstance>) };
            method = type.GetMethod("FindIndex", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, FindIndex_7);
            args   = new Type[] { typeof(System.Predicate <ILRuntime.Runtime.Intepreter.ILTypeInstance>) };
            method = type.GetMethod("FindAll", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, FindAll_8);
            args   = new Type[] { typeof(System.Predicate <ILRuntime.Runtime.Intepreter.ILTypeInstance>) };
            method = type.GetMethod("Find", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Find_9);
            args   = new Type[] { typeof(ILRuntime.Runtime.Intepreter.ILTypeInstance) };
            method = type.GetMethod("Remove", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Remove_10);
            args   = new Type[] { typeof(System.Predicate <ILRuntime.Runtime.Intepreter.ILTypeInstance>) };
            method = type.GetMethod("RemoveAll", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, RemoveAll_11);
            args   = new Type[] { typeof(System.Comparison <ILRuntime.Runtime.Intepreter.ILTypeInstance>) };
            method = type.GetMethod("Sort", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Sort_12);
            args   = new Type[] { typeof(System.Action <ILRuntime.Runtime.Intepreter.ILTypeInstance>) };
            method = type.GetMethod("ForEach", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ForEach_13);
            args   = new Type[] { typeof(System.Collections.Generic.IEnumerable <ILRuntime.Runtime.Intepreter.ILTypeInstance>) };
            method = type.GetMethod("AddRange", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, AddRange_14);
            args   = new Type[] { typeof(System.Int32), typeof(ILRuntime.Runtime.Intepreter.ILTypeInstance) };
            method = type.GetMethod("Insert", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Insert_15);
            args   = new Type[] { typeof(System.Int32), typeof(System.Int32) };
            method = type.GetMethod("GetRange", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetRange_16);
            args   = new Type[] { typeof(System.Predicate <ILRuntime.Runtime.Intepreter.ILTypeInstance>) };
            method = type.GetMethod("Exists", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Exists_17);
            args   = new Type[] { typeof(System.Collections.Generic.IComparer <ILRuntime.Runtime.Intepreter.ILTypeInstance>) };
            method = type.GetMethod("Sort", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Sort_18);
            args   = new Type[] { typeof(ILRuntime.Runtime.Intepreter.ILTypeInstance) };
            method = type.GetMethod("IndexOf", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, IndexOf_19);
            args   = new Type[] { typeof(System.Int32), typeof(System.Collections.Generic.IEnumerable <ILRuntime.Runtime.Intepreter.ILTypeInstance>) };
            method = type.GetMethod("InsertRange", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, InsertRange_20);
            args   = new Type[] {};
            method = type.GetMethod("GetEnumerator", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetEnumerator_21);
            args   = new Type[] {};
            method = type.GetMethod("Reverse", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Reverse_22);
            args   = new Type[] { typeof(ILRuntime.Runtime.Intepreter.ILTypeInstance) };
            method = type.GetMethod("Contains", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Contains_23);
            args   = new Type[] { typeof(System.Int32), typeof(System.Int32) };
            method = type.GetMethod("RemoveRange", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, RemoveRange_24);

            app.RegisterCLRCreateArrayInstance(type, s => new System.Collections.Generic.List <ILRuntime.Runtime.Intepreter.ILTypeInstance> [s]);

            args   = new Type[] {};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
            args   = new Type[] { typeof(System.Collections.Generic.IEnumerable <ILRuntime.Runtime.Intepreter.ILTypeInstance>) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_1);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_2);
        }
        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(System.Collections.Generic.Dictionary <System.String, System.UInt32>);

            args   = new Type[] {};
            method = type.GetMethod("get_Count", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Count_0);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("get_Item", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Item_1);
            args   = new Type[] { typeof(System.String), typeof(System.UInt32) };
            method = type.GetMethod("set_Item", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_Item_2);
            args   = new Type[] { typeof(System.String), typeof(System.UInt32) };
            method = type.GetMethod("Add", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Add_3);
            args   = new Type[] {};
            method = type.GetMethod("get_Comparer", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Comparer_4);
            args   = new Type[] {};
            method = type.GetMethod("Clear", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Clear_5);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("ContainsKey", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ContainsKey_6);
            args   = new Type[] { typeof(System.UInt32) };
            method = type.GetMethod("ContainsValue", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ContainsValue_7);
            args   = new Type[] { typeof(System.Runtime.Serialization.SerializationInfo), typeof(System.Runtime.Serialization.StreamingContext) };
            method = type.GetMethod("GetObjectData", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetObjectData_8);
            args   = new Type[] { typeof(System.Object) };
            method = type.GetMethod("OnDeserialization", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, OnDeserialization_9);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("Remove", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Remove_10);
            args   = new Type[] { typeof(System.String), typeof(System.UInt32).MakeByRefType() };
            method = type.GetMethod("TryGetValue", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, TryGetValue_11);
            args   = new Type[] {};
            method = type.GetMethod("get_Keys", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Keys_12);
            args   = new Type[] {};
            method = type.GetMethod("get_Values", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Values_13);
            args   = new Type[] {};
            method = type.GetMethod("GetEnumerator", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetEnumerator_14);



            app.RegisterCLRCreateDefaultInstance(type, () => new System.Collections.Generic.Dictionary <System.String, System.UInt32>());
            app.RegisterCLRCreateArrayInstance(type, s => new System.Collections.Generic.Dictionary <System.String, System.UInt32> [s]);

            args   = new Type[] {};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
            args   = new Type[] { typeof(System.Collections.Generic.IEqualityComparer <System.String>) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_1);
            args   = new Type[] { typeof(System.Collections.Generic.IDictionary <System.String, System.UInt32>) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_2);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_3);
            args   = new Type[] { typeof(System.Collections.Generic.IDictionary <System.String, System.UInt32>), typeof(System.Collections.Generic.IEqualityComparer <System.String>) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_4);
            args   = new Type[] { typeof(System.Int32), typeof(System.Collections.Generic.IEqualityComparer <System.String>) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_5);
        }
コード例 #28
0
        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(FairyGUI.GComboBox);

            args   = new Type[] {};
            method = type.GetMethod("get_onChanged", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_onChanged_0);
            args   = new Type[] {};
            method = type.GetMethod("get_icon", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_icon_1);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("set_icon", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_icon_2);
            args   = new Type[] {};
            method = type.GetMethod("get_title", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_title_3);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("set_title", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_title_4);
            args   = new Type[] {};
            method = type.GetMethod("get_text", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_text_5);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("set_text", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_text_6);
            args   = new Type[] {};
            method = type.GetMethod("get_titleColor", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_titleColor_7);
            args   = new Type[] { typeof(UnityEngine.Color) };
            method = type.GetMethod("set_titleColor", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_titleColor_8);
            args   = new Type[] {};
            method = type.GetMethod("get_titleFontSize", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_titleFontSize_9);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_titleFontSize", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_titleFontSize_10);
            args   = new Type[] {};
            method = type.GetMethod("get_items", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_items_11);
            args   = new Type[] { typeof(System.String[]) };
            method = type.GetMethod("set_items", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_items_12);
            args   = new Type[] {};
            method = type.GetMethod("get_icons", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_icons_13);
            args   = new Type[] { typeof(System.String[]) };
            method = type.GetMethod("set_icons", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_icons_14);
            args   = new Type[] {};
            method = type.GetMethod("get_values", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_values_15);
            args   = new Type[] { typeof(System.String[]) };
            method = type.GetMethod("set_values", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_values_16);
            args   = new Type[] {};
            method = type.GetMethod("get_selectedIndex", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_selectedIndex_17);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_selectedIndex", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_selectedIndex_18);
            args   = new Type[] {};
            method = type.GetMethod("get_selectionController", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_selectionController_19);
            args   = new Type[] { typeof(FairyGUI.Controller) };
            method = type.GetMethod("set_selectionController", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_selectionController_20);
            args   = new Type[] {};
            method = type.GetMethod("get_value", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_value_21);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("set_value", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_value_22);
            args   = new Type[] {};
            method = type.GetMethod("get_popupDirection", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_popupDirection_23);
            args   = new Type[] { typeof(FairyGUI.PopupDirection) };
            method = type.GetMethod("set_popupDirection", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_popupDirection_24);
            args   = new Type[] {};
            method = type.GetMethod("GetTextField", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetTextField_25);
            args   = new Type[] { typeof(FairyGUI.Controller) };
            method = type.GetMethod("HandleControllerChanged", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, HandleControllerChanged_26);
            args   = new Type[] {};
            method = type.GetMethod("Dispose", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Dispose_27);
            args   = new Type[] { typeof(FairyGUI.Utils.ByteBuffer), typeof(System.Int32) };
            method = type.GetMethod("Setup_AfterAdd", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Setup_AfterAdd_28);
            args   = new Type[] {};
            method = type.GetMethod("UpdateDropdownList", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, UpdateDropdownList_29);

            field = type.GetField("visibleItemCount", flag);
            app.RegisterCLRFieldGetter(field, get_visibleItemCount_0);
            app.RegisterCLRFieldSetter(field, set_visibleItemCount_0);
            field = type.GetField("dropdown", flag);
            app.RegisterCLRFieldGetter(field, get_dropdown_1);
            app.RegisterCLRFieldSetter(field, set_dropdown_1);


            app.RegisterCLRCreateDefaultInstance(type, () => new FairyGUI.GComboBox());
            app.RegisterCLRCreateArrayInstance(type, s => new FairyGUI.GComboBox[s]);

            args   = new Type[] {};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
コード例 #29
0
        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(wxb.Hotfix);

            args   = new Type[] { typeof(System.Action) };
            method = type.GetMethod("Run", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Run_0);
            args   = new Type[] { typeof(System.Func <System.Object>) };
            method = type.GetMethod("Run", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Run_1);
            args   = new Type[] { typeof(System.Object), typeof(System.Object[]) };
            method = type.GetMethod("Invoke", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Invoke_2);
            args   = new Type[] { typeof(System.Object) };
            method = type.GetMethod("Invoke", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Invoke_3);
            args   = new Type[] { typeof(System.Object), typeof(System.Object) };
            method = type.GetMethod("Invoke", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Invoke_4);
            args   = new Type[] { typeof(System.Object), typeof(System.Object), typeof(System.Object) };
            method = type.GetMethod("Invoke", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Invoke_5);
            args   = new Type[] { typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object) };
            method = type.GetMethod("Invoke", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Invoke_6);
            args   = new Type[] { typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object) };
            method = type.GetMethod("Invoke", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Invoke_7);
            args   = new Type[] { typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object) };
            method = type.GetMethod("Invoke", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Invoke_8);
            args   = new Type[] { typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object) };
            method = type.GetMethod("Invoke", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Invoke_9);
            args   = new Type[] { typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object) };
            method = type.GetMethod("Invoke", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Invoke_10);
            args   = new Type[] { typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object) };
            method = type.GetMethod("Invoke", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Invoke_11);
            args   = new Type[] { typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object) };
            method = type.GetMethod("Invoke", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Invoke_12);
            args   = new Type[] { typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object) };
            method = type.GetMethod("Invoke", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Invoke_13);
            args   = new Type[] {};
            method = type.GetMethod("Release", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Release_14);

            field = type.GetField("field", flag);
            app.RegisterCLRFieldGetter(field, get_field_0);
            app.RegisterCLRFieldSetter(field, set_field_0);
            field = type.GetField("method", flag);
            app.RegisterCLRFieldGetter(field, get_method_1);
            app.RegisterCLRFieldSetter(field, set_method_1);
            field = type.GetField("bridge", flag);
            app.RegisterCLRFieldGetter(field, get_bridge_2);
            app.RegisterCLRFieldSetter(field, set_bridge_2);


            app.RegisterCLRCreateArrayInstance(type, s => new wxb.Hotfix[s]);

            args   = new Type[] { typeof(System.Reflection.FieldInfo), typeof(System.Reflection.MethodInfo), typeof(IL.DelegateBridge) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
            args   = new Type[] { typeof(System.Type), typeof(System.String), typeof(System.Type) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_1);
            args   = new Type[] { typeof(System.Type), typeof(System.String), typeof(System.String), typeof(System.Type), typeof(System.String) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_2);
        }
コード例 #30
0
        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(System.String);

            args   = new Type[] { typeof(System.Object), typeof(System.Object) };
            method = type.GetMethod("Concat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Concat_0);
            args   = new Type[] { typeof(System.String), typeof(System.String) };
            method = type.GetMethod("op_Inequality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Inequality_1);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("Contains", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Contains_2);
            args   = new Type[] { typeof(System.String), typeof(System.String) };
            method = type.GetMethod("Concat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Concat_3);
            args   = new Type[] { typeof(System.String), typeof(System.String) };
            method = type.GetMethod("op_Equality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Equality_4);
            args   = new Type[] { typeof(System.String), typeof(System.String), typeof(System.String) };
            method = type.GetMethod("Concat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Concat_5);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("IsNullOrEmpty", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, IsNullOrEmpty_6);
            args   = new Type[] { typeof(System.String), typeof(System.Object), typeof(System.Object) };
            method = type.GetMethod("Format", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Format_7);
            args   = new Type[] { typeof(System.String), typeof(System.Object[]) };
            method = type.GetMethod("Format", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Format_8);
            args   = new Type[] { typeof(System.String), typeof(System.Object), typeof(System.Object), typeof(System.Object) };
            method = type.GetMethod("Format", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Format_9);
            args   = new Type[] {};
            method = type.GetMethod("ToLower", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToLower_10);
            args   = new Type[] { typeof(System.Object[]) };
            method = type.GetMethod("Concat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Concat_11);
            args   = new Type[] { typeof(System.String), typeof(System.Object) };
            method = type.GetMethod("Format", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Format_12);
            args   = new Type[] { typeof(System.String), typeof(System.String), typeof(System.String), typeof(System.String) };
            method = type.GetMethod("Concat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Concat_13);
            args   = new Type[] { typeof(System.String), typeof(System.String) };
            method = type.GetMethod("Replace", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Replace_14);
            args   = new Type[] { typeof(System.String[]) };
            method = type.GetMethod("Concat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Concat_15);

            field = type.GetField("Empty", flag);
            app.RegisterCLRFieldGetter(field, get_Empty_0);

            app.RegisterCLRCreateArrayInstance(type, s => new System.String[s]);
        }