Пример #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(UnityEngine.Vector3);

            args   = new Type[] {};
            method = type.GetMethod("get_one", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_one_0);
            args   = new Type[] {};
            method = type.GetMethod("get_zero", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_zero_1);
            args   = new Type[] {};
            method = type.GetMethod("get_back", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_back_2);
            args   = new Type[] {};
            method = type.GetMethod("get_forward", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_forward_3);

            app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.Vector3());
        }
Пример #2
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.Mathf);

            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("Cos", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Cos_0);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("Sin", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Sin_1);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("Sqrt", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Sqrt_2);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("Abs", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Abs_3);

            app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.Mathf());
        }
Пример #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(ILRuntimeTest.TestFramework.TestStruct);

            args   = new Type[] { typeof(ILRuntimeTest.TestFramework.TestStruct).MakeByRefType() };
            method = type.GetMethod("DoTest", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DoTest_0);
            args   = new Type[] { typeof(System.Int32).MakeByRefType() };
            method = type.GetMethod("DoTest", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DoTest_1);
            args   = new Type[] { typeof(ILRuntimeTest.TestFramework.TestStruct) };
            method = type.GetMethod("DoTest2", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DoTest2_2);

            app.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);

            app.RegisterCLRCreateDefaultInstance(type, () => new ILRuntimeTest.TestFramework.TestStruct());
        }
Пример #4
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(global::TencentIMSDKMessage);

            field = type.GetField("sender", flag);
            app.RegisterCLRFieldGetter(field, get_sender_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_sender_0, null);
            field = type.GetField("nickName", flag);
            app.RegisterCLRFieldGetter(field, get_nickName_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_nickName_1, null);
            field = type.GetField("senderDetail", flag);
            app.RegisterCLRFieldGetter(field, get_senderDetail_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_senderDetail_2, null);
            field = type.GetField("text", flag);
            app.RegisterCLRFieldGetter(field, get_text_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_text_3, null);

            app.RegisterCLRCreateDefaultInstance(type, () => new global::TencentIMSDKMessage());
        }
Пример #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(ETModel.Packet);

            args   = new Type[] {};
            method = type.GetMethod("Opcode", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Opcode_0);
            args   = new Type[] {};
            method = type.GetMethod("Flag", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Flag_1);
            args   = new Type[] {};
            method = type.GetMethod("get_Bytes", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Bytes_2);
            args   = new Type[] {};
            method = type.GetMethod("get_Length", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Length_3);

            app.RegisterCLRCreateDefaultInstance(type, () => new ETModel.Packet());
        }
Пример #6
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.Quaternion);

            args   = new Type[] { typeof(UnityEngine.Vector3) };
            method = type.GetMethod("LookRotation", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LookRotation_0);
            args   = new Type[] { typeof(UnityEngine.Quaternion), typeof(UnityEngine.Quaternion), typeof(System.Single) };
            method = type.GetMethod("Lerp", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Lerp_1);
            args   = new Type[] {};
            method = type.GetMethod("get_identity", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_identity_2);
            args   = new Type[] {};
            method = type.GetMethod("get_eulerAngles", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_eulerAngles_3);

            app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.Quaternion());
        }
Пример #7
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.BoxCollider2D);

            args   = new Type[] {};
            method = type.GetMethod("get_size", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_size_0);
            args   = new Type[] { typeof(UnityEngine.Vector2) };
            method = type.GetMethod("set_size", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_size_1);
            args   = new Type[] {};
            method = type.GetMethod("get_edgeRadius", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_edgeRadius_2);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("set_edgeRadius", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_edgeRadius_3);
            args   = new Type[] {};
            method = type.GetMethod("get_autoTiling", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_autoTiling_4);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_autoTiling", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_autoTiling_5);



            app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.BoxCollider2D());
            app.RegisterCLRCreateArrayInstance(type, s => new UnityEngine.BoxCollider2D[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(UnityEngine.Vector2);

            args   = new Type[] { typeof(UnityEngine.Vector2), typeof(UnityEngine.Vector2) };
            method = type.GetMethod("Distance", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Distance_0);
            args   = new Type[] { typeof(UnityEngine.Vector2), typeof(UnityEngine.Vector2) };
            method = type.GetMethod("op_Subtraction", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Subtraction_1);
            args   = new Type[] {};
            method = type.GetMethod("get_normalized", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_normalized_2);
            args   = new Type[] { typeof(UnityEngine.Vector2), typeof(UnityEngine.Vector2) };
            method = type.GetMethod("Dot", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Dot_3);

            field = type.GetField("x", flag);
            app.RegisterCLRFieldGetter(field, get_x_0);
            app.RegisterCLRFieldSetter(field, set_x_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_x_0, AssignFromStack_x_0);
            field = type.GetField("y", flag);
            app.RegisterCLRFieldGetter(field, get_y_1);
            app.RegisterCLRFieldSetter(field, set_y_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_y_1, AssignFromStack_y_1);

            app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.Vector2());

            args   = new Type[] { typeof(System.Single), typeof(System.Single) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
Пример #9
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.Object);

            args   = new Type[] { typeof(System.Object) };
            method = type.GetMethod("Equals", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Equals_0);
            args   = new Type[] { typeof(System.Object), typeof(System.Object) };
            method = type.GetMethod("Equals", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Equals_1);
            args   = new Type[] {};
            method = type.GetMethod("GetHashCode", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetHashCode_2);
            args   = new Type[] {};
            method = type.GetMethod("GetType", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetType_3);
            args   = new Type[] {};
            method = type.GetMethod("ToString", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToString_4);
            args   = new Type[] { typeof(System.Object), typeof(System.Object) };
            method = type.GetMethod("ReferenceEquals", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ReferenceEquals_5);



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

            args   = new Type[] {};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
Пример #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(ILRuntimeTest.TestFramework.TestVector3NoBinding);

            args   = new Type[] {};
            method = type.GetMethod("get_zero", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_zero_0);
            args   = new Type[] {};
            method = type.GetMethod("get_one", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_one_1);

            field = type.GetField("x", flag);
            app.RegisterCLRFieldGetter(field, get_x_0);
            app.RegisterCLRFieldSetter(field, set_x_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_x_0, AssignFromStack_x_0);
            field = type.GetField("y", flag);
            app.RegisterCLRFieldGetter(field, get_y_1);
            app.RegisterCLRFieldSetter(field, set_y_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_y_1, AssignFromStack_y_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 ILRuntimeTest.TestFramework.TestVector3NoBinding());

            args   = new Type[] { typeof(System.Single), typeof(System.Single), typeof(System.Single) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
Пример #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(UnityEngine.LayerMask);

            MethodInfo[] methods = type.GetMethods(flag).Where(t => !t.IsGenericMethod).ToArray();
            args   = new Type[] { typeof(UnityEngine.LayerMask) };
            method = methods.Where(t => t.Name.Equals("op_Implicit") && t.ReturnType == typeof(System.Int32) && t.CheckMethodParams(args)).Single();
            app.RegisterCLRMethodRedirection(method, op_Implicit_0);
            args   = new Type[] { typeof(System.Int32) };
            method = methods.Where(t => t.Name.Equals("op_Implicit") && t.ReturnType == typeof(UnityEngine.LayerMask) && t.CheckMethodParams(args)).Single();
            app.RegisterCLRMethodRedirection(method, op_Implicit_1);
            args   = new Type[] {};
            method = type.GetMethod("get_value", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_value_2);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_value", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_value_3);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("LayerToName", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LayerToName_4);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("NameToLayer", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, NameToLayer_5);
            args   = new Type[] { typeof(System.String[]) };
            method = type.GetMethod("GetMask", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetMask_6);


            app.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);

            app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.LayerMask());
            app.RegisterCLRCreateArrayInstance(type, s => new UnityEngine.LayerMask[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(UnityEngine.Color);

            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_red", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_red_1);
            args   = new Type[] {};
            method = type.GetMethod("get_green", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_green_2);
            args   = new Type[] {};
            method = type.GetMethod("get_yellow", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_yellow_3);
            args   = new Type[] {};
            method = type.GetMethod("get_blue", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_blue_4);
            args   = new Type[] {};
            method = type.GetMethod("get_black", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_black_5);
            args   = new Type[] {};
            method = type.GetMethod("get_grey", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_grey_6);

            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);
        }
        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) };
            method = type.GetMethod("Equals", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Equals_1);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3), typeof(System.Single) };
            method = type.GetMethod("Lerp", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Lerp_2);

            field = type.GetField("x", flag);
            app.RegisterCLRFieldGetter(field, get_x_0);
            app.RegisterCLRFieldSetter(field, set_x_0);
            field = type.GetField("y", flag);
            app.RegisterCLRFieldGetter(field, get_y_1);
            app.RegisterCLRFieldSetter(field, set_y_1);
            field = type.GetField("z", flag);
            app.RegisterCLRFieldGetter(field, get_z_2);
            app.RegisterCLRFieldSetter(field, set_z_2);

            app.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);

            app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.Vector3());

            args   = new Type[] { typeof(System.Single), typeof(System.Single) };
            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.Microphone);

            args   = new Type[] { typeof(System.String), typeof(System.Boolean), typeof(System.Int32), typeof(System.Int32) };
            method = type.GetMethod("Start", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Start_0);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("End", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, End_1);
            args   = new Type[] {};
            method = type.GetMethod("get_devices", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_devices_2);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("IsRecording", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, IsRecording_3);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("GetPosition", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetPosition_4);
            args   = new Type[] { typeof(System.String), typeof(System.Int32).MakeByRefType(), typeof(System.Int32).MakeByRefType() };
            method = type.GetMethod("GetDeviceCaps", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetDeviceCaps_5);



            app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.Microphone());
            app.RegisterCLRCreateArrayInstance(type, s => new UnityEngine.Microphone[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(UnityEngine.Vector2Int);

            args   = new Type[] {};
            method = type.GetMethod("get_y", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_y_0);
            args   = new Type[] {};
            method = type.GetMethod("get_x", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_x_1);
            args   = new Type[] { typeof(UnityEngine.Vector2Int) };
            method = type.GetMethod("op_Implicit", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Implicit_2);

            app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.Vector2Int());

            args   = new Type[] { typeof(System.Int32), typeof(System.Int32) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
Пример #16
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.Rect);

            args   = new Type[] {};
            method = type.GetMethod("get_width", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_width_0);
            args   = new Type[] {};
            method = type.GetMethod("get_height", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_height_1);
            args   = new Type[] {};
            method = type.GetMethod("get_size", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_size_2);

            app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.Rect());

            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_0);
        }
Пример #17
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.ValueTuple <System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>);

            field = type.GetField("Item1", flag);
            app.RegisterCLRFieldGetter(field, get_Item1_0);
            app.RegisterCLRFieldSetter(field, set_Item1_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_Item1_0, AssignFromStack_Item1_0);
            field = type.GetField("Item2", flag);
            app.RegisterCLRFieldGetter(field, get_Item2_1);
            app.RegisterCLRFieldSetter(field, set_Item2_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_Item2_1, AssignFromStack_Item2_1);

            app.RegisterCLRCreateDefaultInstance(type, () => new System.ValueTuple <System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>());

            args   = new Type[] { typeof(System.String), typeof(ILRuntime.Runtime.Intepreter.ILTypeInstance) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
Пример #18
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.DateTime);

            args   = new Type[] {};
            method = type.GetMethod("get_Ticks", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Ticks_0);
            args   = new Type[] {};
            method = type.GetMethod("get_Now", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Now_1);
            args   = new Type[] {};
            method = type.GetMethod("get_Year", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Year_2);

            app.RegisterCLRCreateDefaultInstance(type, () => new System.DateTime());

            args   = new Type[] { typeof(System.Int32), typeof(System.Int32), typeof(System.Int32), typeof(System.Int32), typeof(System.Int32), typeof(System.Int32), typeof(System.DateTimeKind) };
            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;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(UnityEngine.Vector2);

            MethodInfo[] methods = type.GetMethods(flag).Where(t => !t.IsGenericMethod).ToArray();
            args   = new Type[] { typeof(UnityEngine.Vector2) };
            method = methods.Where(t => t.Name.Equals("op_Implicit") && t.ReturnType == typeof(UnityEngine.Vector3) && t.CheckMethodParams(args)).Single();
            app.RegisterCLRMethodRedirection(method, op_Implicit_0);
            args   = new Type[] { typeof(UnityEngine.Vector2), typeof(System.Single) };
            method = type.GetMethod("op_Division", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Division_1);
            args   = new Type[] {};
            method = type.GetMethod("get_zero", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_zero_2);
            args   = new Type[] { typeof(UnityEngine.Vector3) };
            method = methods.Where(t => t.Name.Equals("op_Implicit") && t.ReturnType == typeof(UnityEngine.Vector2) && t.CheckMethodParams(args)).Single();
            app.RegisterCLRMethodRedirection(method, op_Implicit_3);

            field = type.GetField("y", flag);
            app.RegisterCLRFieldGetter(field, get_y_0);
            app.RegisterCLRFieldSetter(field, set_y_0);
            field = type.GetField("x", flag);
            app.RegisterCLRFieldGetter(field, get_x_1);
            app.RegisterCLRFieldSetter(field, set_x_1);

            app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.Vector2());

            args   = new Type[] { typeof(System.Single), typeof(System.Single) };
            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;

            Type[] args;
            Type   type = typeof(App.MathUtil);

            args   = new Type[] { typeof(System.Int32), typeof(System.Int32) };
            method = type.GetMethod("Add", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Add_0);
            args   = new Type[] { typeof(System.Single), typeof(System.Single) };
            method = type.GetMethod("FloatAdd", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, FloatAdd_1);



            app.RegisterCLRCreateDefaultInstance(type, () => new App.MathUtil());
            app.RegisterCLRCreateArrayInstance(type, s => new App.MathUtil[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;

            Type[] args;
            Type   type = typeof(System.Nullable <System.Int32>);

            args   = new Type[] {};
            method = type.GetMethod("GetValueOrDefault", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetValueOrDefault_0);
            args   = new Type[] {};
            method = type.GetMethod("get_HasValue", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_HasValue_1);
            args   = new Type[] {};
            method = type.GetMethod("get_Value", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Value_2);

            app.RegisterCLRCreateDefaultInstance(type, () => new System.Nullable <System.Int32>());

            args   = new Type[] { typeof(System.Int32) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
Пример #22
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.Bounds);

            args   = new Type[] { typeof(UnityEngine.Vector3) };
            method = type.GetMethod("set_center", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_center_0);
            args   = new Type[] { typeof(UnityEngine.Vector3) };
            method = type.GetMethod("set_size", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_size_1);
            args   = new Type[] {};
            method = type.GetMethod("get_center", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_center_2);
            args   = new Type[] {};
            method = type.GetMethod("get_size", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_size_3);
            args   = new Type[] { typeof(UnityEngine.Bounds) };
            method = type.GetMethod("Encapsulate", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Encapsulate_4);
            args   = new Type[] { typeof(UnityEngine.Vector3) };
            method = type.GetMethod("Contains", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Contains_5);
            args   = new Type[] {};
            method = type.GetMethod("get_extents", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_extents_6);

            app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.Bounds());

            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
Пример #23
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(global::TSVector2);

            args   = new Type[] { typeof(global::FP), typeof(global::FP) };
            method = type.GetMethod("Set", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Set_0);
            args   = new Type[] {};
            method = type.GetMethod("get_one", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_one_1);
            args   = new Type[] { typeof(global::TSVector2), typeof(global::TSVector2) };
            method = type.GetMethod("op_Addition", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Addition_2);

            app.RegisterCLRCreateDefaultInstance(type, () => new global::TSVector2());

            args   = new Type[] { typeof(global::FP), typeof(global::FP) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
Пример #24
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.GGroup);

            args   = new Type[] {};
            method = type.GetMethod("get_layout", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_layout_0);
            args   = new Type[] { typeof(FairyGUI.GroupLayoutType) };
            method = type.GetMethod("set_layout", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_layout_1);
            args   = new Type[] {};
            method = type.GetMethod("get_lineGap", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_lineGap_2);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_lineGap", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_lineGap_3);
            args   = new Type[] {};
            method = type.GetMethod("get_columnGap", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_columnGap_4);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_columnGap", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_columnGap_5);
            args   = new Type[] {};
            method = type.GetMethod("get_excludeInvisibles", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_excludeInvisibles_6);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_excludeInvisibles", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_excludeInvisibles_7);
            args   = new Type[] {};
            method = type.GetMethod("get_autoSizeDisabled", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_autoSizeDisabled_8);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_autoSizeDisabled", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_autoSizeDisabled_9);
            args   = new Type[] {};
            method = type.GetMethod("get_mainGridMinSize", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_mainGridMinSize_10);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_mainGridMinSize", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_mainGridMinSize_11);
            args   = new Type[] {};
            method = type.GetMethod("get_mainGridIndex", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_mainGridIndex_12);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_mainGridIndex", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_mainGridIndex_13);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("SetBoundsChangedFlag", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SetBoundsChangedFlag_14);
            args   = new Type[] {};
            method = type.GetMethod("EnsureBoundsCorrect", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, EnsureBoundsCorrect_15);
            args   = new Type[] { typeof(FairyGUI.Utils.ByteBuffer), typeof(System.Int32) };
            method = type.GetMethod("Setup_BeforeAdd", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Setup_BeforeAdd_16);
            args   = new Type[] { typeof(FairyGUI.Utils.ByteBuffer), typeof(System.Int32) };
            method = type.GetMethod("Setup_AfterAdd", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Setup_AfterAdd_17);



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

            args   = new Type[] {};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
Пример #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.Runtime.CompilerServices.AsyncTaskMethodBuilder <System.Int32>);

            args   = new Type[] {};
            method = type.GetMethod("Create", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Create_0);
            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(ETModel.IAsyncStateMachineClassInheritanceAdaptor.IAsyncStateMachineAdaptor) };
            if (genericMethods.TryGetValue("Start", out lst))
            {
                foreach (var m in lst)
                {
                    if (m.MatchGenericParameters(args, typeof(void), typeof(ETModel.IAsyncStateMachineClassInheritanceAdaptor.IAsyncStateMachineAdaptor).MakeByRefType()))
                    {
                        method = m.MakeGenericMethod(args);
                        app.RegisterCLRMethodRedirection(method, Start_1);

                        break;
                    }
                }
            }
            args   = new Type[] {};
            method = type.GetMethod("get_Task", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Task_2);
            args = new Type[] { typeof(System.Runtime.CompilerServices.TaskAwaiter <System.Int32>), typeof(ETModel.IAsyncStateMachineClassInheritanceAdaptor.IAsyncStateMachineAdaptor) };
            if (genericMethods.TryGetValue("AwaitUnsafeOnCompleted", out lst))
            {
                foreach (var m in lst)
                {
                    if (m.MatchGenericParameters(args, typeof(void), typeof(System.Runtime.CompilerServices.TaskAwaiter <System.Int32>).MakeByRefType(), typeof(ETModel.IAsyncStateMachineClassInheritanceAdaptor.IAsyncStateMachineAdaptor).MakeByRefType()))
                    {
                        method = m.MakeGenericMethod(args);
                        app.RegisterCLRMethodRedirection(method, AwaitUnsafeOnCompleted_3);

                        break;
                    }
                }
            }
            args   = new Type[] { typeof(System.Exception) };
            method = type.GetMethod("SetException", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SetException_4);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("SetResult", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SetResult_5);
            args = new Type[] { typeof(ETModel.ETTask <Google.Protobuf.Adapt_IMessage.Adaptor> .Awaiter), typeof(ETModel.IAsyncStateMachineClassInheritanceAdaptor.IAsyncStateMachineAdaptor) };
            if (genericMethods.TryGetValue("AwaitUnsafeOnCompleted", out lst))
            {
                foreach (var m in lst)
                {
                    if (m.MatchGenericParameters(args, typeof(void), typeof(ETModel.ETTask <Google.Protobuf.Adapt_IMessage.Adaptor> .Awaiter).MakeByRefType(), typeof(ETModel.IAsyncStateMachineClassInheritanceAdaptor.IAsyncStateMachineAdaptor).MakeByRefType()))
                    {
                        method = m.MakeGenericMethod(args);
                        app.RegisterCLRMethodRedirection(method, AwaitUnsafeOnCompleted_6);

                        break;
                    }
                }
            }

            app.RegisterCLRCreateDefaultInstance(type, () => new System.Runtime.CompilerServices.AsyncTaskMethodBuilder <System.Int32>());
        }
Пример #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(UnityEngine.Vector2);

            args   = new Type[] {};
            method = type.GetMethod("get_one", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_one_0);
            args   = new Type[] { typeof(UnityEngine.Vector2), typeof(UnityEngine.Vector2) };
            method = type.GetMethod("op_Addition", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Addition_1);
            args   = new Type[] { typeof(UnityEngine.Vector2), typeof(UnityEngine.Vector2) };
            method = type.GetMethod("op_Subtraction", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Subtraction_2);
            args   = new Type[] { typeof(UnityEngine.Vector2), typeof(System.Single) };
            method = type.GetMethod("op_Multiply", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Multiply_3);
            args   = new Type[] { typeof(System.Single), typeof(UnityEngine.Vector2) };
            method = type.GetMethod("op_Multiply", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Multiply_4);
            args   = new Type[] { typeof(UnityEngine.Vector2), typeof(System.Single) };
            method = type.GetMethod("op_Division", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Division_5);
            args   = new Type[] { typeof(UnityEngine.Vector2) };
            method = type.GetMethod("op_UnaryNegation", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_UnaryNegation_6);
            args   = new Type[] { typeof(UnityEngine.Vector2), typeof(UnityEngine.Vector2) };
            method = type.GetMethod("op_Equality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Equality_7);
            args   = new Type[] { typeof(UnityEngine.Vector2), typeof(UnityEngine.Vector2) };
            method = type.GetMethod("op_Inequality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Inequality_8);
            args   = new Type[] { typeof(UnityEngine.Vector2) };
            method = type.GetMethod("op_Implicit", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Implicit_9);
            args   = new Type[] { typeof(UnityEngine.Vector3) };
            method = type.GetMethod("op_Implicit", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Implicit_10);
            args   = new Type[] { typeof(UnityEngine.Vector2), typeof(UnityEngine.Vector2) };
            method = type.GetMethod("Dot", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Dot_11);
            args   = new Type[] { typeof(UnityEngine.Vector2), typeof(UnityEngine.Vector2) };
            method = type.GetMethod("Distance", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Distance_12);
            args   = new Type[] {};
            method = type.GetMethod("get_magnitude", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_magnitude_13);
            args   = new Type[] {};
            method = type.GetMethod("get_normalized", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_normalized_14);
            args   = new Type[] {};
            method = type.GetMethod("get_sqrMagnitude", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_sqrMagnitude_15);
            args   = new Type[] {};
            method = type.GetMethod("get_zero", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_zero_16);

            app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.Vector2());

            args   = new Type[] { typeof(System.Single), typeof(System.Single) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
Пример #27
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.Dictionary <System.UInt32, ILRuntime.Runtime.Intepreter.ILTypeInstance>);

            args   = new Type[] {};
            method = type.GetMethod("get_Count", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Count_0);
            args   = new Type[] { typeof(System.UInt32) };
            method = type.GetMethod("get_Item", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Item_1);
            args   = new Type[] { typeof(System.UInt32), typeof(ILRuntime.Runtime.Intepreter.ILTypeInstance) };
            method = type.GetMethod("set_Item", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_Item_2);
            args   = new Type[] { typeof(System.UInt32), typeof(ILRuntime.Runtime.Intepreter.ILTypeInstance) };
            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.UInt32) };
            method = type.GetMethod("ContainsKey", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ContainsKey_6);
            args   = new Type[] { typeof(ILRuntime.Runtime.Intepreter.ILTypeInstance) };
            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.UInt32) };
            method = type.GetMethod("Remove", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Remove_10);
            args   = new Type[] { typeof(System.UInt32), typeof(ILRuntime.Runtime.Intepreter.ILTypeInstance).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.UInt32, ILRuntime.Runtime.Intepreter.ILTypeInstance>());
            app.RegisterCLRCreateArrayInstance(type, s => new System.Collections.Generic.Dictionary <System.UInt32, 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.IEqualityComparer <System.UInt32>) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_1);
            args   = new Type[] { typeof(System.Collections.Generic.IDictionary <System.UInt32, ILRuntime.Runtime.Intepreter.ILTypeInstance>) };
            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.UInt32, ILRuntime.Runtime.Intepreter.ILTypeInstance>), typeof(System.Collections.Generic.IEqualityComparer <System.UInt32>) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_4);
            args   = new Type[] { typeof(System.Int32), typeof(System.Collections.Generic.IEqualityComparer <System.UInt32>) };
            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(UnityEngine.LineRenderer);

            args   = new Type[] {};
            method = type.GetMethod("get_startWidth", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_startWidth_0);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("set_startWidth", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_startWidth_1);
            args   = new Type[] {};
            method = type.GetMethod("get_endWidth", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_endWidth_2);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("set_endWidth", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_endWidth_3);
            args   = new Type[] {};
            method = type.GetMethod("get_widthCurve", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_widthCurve_4);
            args   = new Type[] { typeof(UnityEngine.AnimationCurve) };
            method = type.GetMethod("set_widthCurve", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_widthCurve_5);
            args   = new Type[] {};
            method = type.GetMethod("get_widthMultiplier", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_widthMultiplier_6);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("set_widthMultiplier", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_widthMultiplier_7);
            args   = new Type[] {};
            method = type.GetMethod("get_startColor", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_startColor_8);
            args   = new Type[] { typeof(UnityEngine.Color) };
            method = type.GetMethod("set_startColor", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_startColor_9);
            args   = new Type[] {};
            method = type.GetMethod("get_endColor", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_endColor_10);
            args   = new Type[] { typeof(UnityEngine.Color) };
            method = type.GetMethod("set_endColor", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_endColor_11);
            args   = new Type[] {};
            method = type.GetMethod("get_colorGradient", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_colorGradient_12);
            args   = new Type[] { typeof(UnityEngine.Gradient) };
            method = type.GetMethod("set_colorGradient", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_colorGradient_13);
            args   = new Type[] {};
            method = type.GetMethod("get_positionCount", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_positionCount_14);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_positionCount", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_positionCount_15);
            args   = new Type[] { typeof(System.Int32), typeof(UnityEngine.Vector3) };
            method = type.GetMethod("SetPosition", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SetPosition_16);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("GetPosition", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetPosition_17);
            args   = new Type[] { typeof(UnityEngine.Vector3[]) };
            method = type.GetMethod("SetPositions", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SetPositions_18);
            args   = new Type[] { typeof(UnityEngine.Vector3[]) };
            method = type.GetMethod("GetPositions", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetPositions_19);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("Simplify", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Simplify_20);
            args   = new Type[] {};
            method = type.GetMethod("get_useWorldSpace", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_useWorldSpace_21);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_useWorldSpace", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_useWorldSpace_22);
            args   = new Type[] {};
            method = type.GetMethod("get_loop", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_loop_23);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_loop", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_loop_24);
            args   = new Type[] {};
            method = type.GetMethod("get_numCornerVertices", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_numCornerVertices_25);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_numCornerVertices", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_numCornerVertices_26);
            args   = new Type[] {};
            method = type.GetMethod("get_numCapVertices", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_numCapVertices_27);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_numCapVertices", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_numCapVertices_28);
            args   = new Type[] {};
            method = type.GetMethod("get_textureMode", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_textureMode_29);
            args   = new Type[] { typeof(UnityEngine.LineTextureMode) };
            method = type.GetMethod("set_textureMode", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_textureMode_30);
            args   = new Type[] {};
            method = type.GetMethod("get_alignment", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_alignment_31);
            args   = new Type[] { typeof(UnityEngine.LineAlignment) };
            method = type.GetMethod("set_alignment", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_alignment_32);
            args   = new Type[] {};
            method = type.GetMethod("get_generateLightingData", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_generateLightingData_33);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_generateLightingData", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_generateLightingData_34);



            app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.LineRenderer());
            app.RegisterCLRCreateArrayInstance(type, s => new UnityEngine.LineRenderer[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;

            Type[] args;
            Type   type = typeof(FairyGUI.GImage);

            args   = new Type[] {};
            method = type.GetMethod("get_color", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_color_0);
            args   = new Type[] { typeof(UnityEngine.Color) };
            method = type.GetMethod("set_color", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_color_1);
            args   = new Type[] {};
            method = type.GetMethod("get_flip", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_flip_2);
            args   = new Type[] { typeof(FairyGUI.FlipType) };
            method = type.GetMethod("set_flip", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_flip_3);
            args   = new Type[] {};
            method = type.GetMethod("get_fillMethod", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_fillMethod_4);
            args   = new Type[] { typeof(FairyGUI.FillMethod) };
            method = type.GetMethod("set_fillMethod", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_fillMethod_5);
            args   = new Type[] {};
            method = type.GetMethod("get_fillOrigin", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_fillOrigin_6);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_fillOrigin", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_fillOrigin_7);
            args   = new Type[] {};
            method = type.GetMethod("get_fillClockwise", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_fillClockwise_8);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_fillClockwise", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_fillClockwise_9);
            args   = new Type[] {};
            method = type.GetMethod("get_fillAmount", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_fillAmount_10);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("set_fillAmount", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_fillAmount_11);
            args   = new Type[] {};
            method = type.GetMethod("get_texture", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_texture_12);
            args   = new Type[] { typeof(FairyGUI.NTexture) };
            method = type.GetMethod("set_texture", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_texture_13);
            args   = new Type[] {};
            method = type.GetMethod("get_material", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_material_14);
            args   = new Type[] { typeof(UnityEngine.Material) };
            method = type.GetMethod("set_material", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_material_15);
            args   = new Type[] {};
            method = type.GetMethod("get_shader", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_shader_16);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("set_shader", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_shader_17);
            args   = new Type[] {};
            method = type.GetMethod("ConstructFromResource", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ConstructFromResource_18);
            args   = new Type[] { typeof(FairyGUI.Utils.ByteBuffer), typeof(System.Int32) };
            method = type.GetMethod("Setup_BeforeAdd", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Setup_BeforeAdd_19);



            app.RegisterCLRCreateDefaultInstance(type, () => new FairyGUI.GImage());
            app.RegisterCLRCreateArrayInstance(type, s => new FairyGUI.GImage[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.Debug);

            args   = new Type[] {};
            method = type.GetMethod("get_logger", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_logger_0);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3), typeof(UnityEngine.Color), typeof(System.Single), typeof(System.Boolean) };
            method = type.GetMethod("DrawLine", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DrawLine_1);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3), typeof(UnityEngine.Color), typeof(System.Single) };
            method = type.GetMethod("DrawLine", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DrawLine_2);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3), typeof(UnityEngine.Color) };
            method = type.GetMethod("DrawLine", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DrawLine_3);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3) };
            method = type.GetMethod("DrawLine", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DrawLine_4);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3), typeof(UnityEngine.Color), typeof(System.Single) };
            method = type.GetMethod("DrawRay", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DrawRay_5);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3), typeof(UnityEngine.Color) };
            method = type.GetMethod("DrawRay", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DrawRay_6);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3) };
            method = type.GetMethod("DrawRay", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DrawRay_7);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3), typeof(UnityEngine.Color), typeof(System.Single), typeof(System.Boolean) };
            method = type.GetMethod("DrawRay", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DrawRay_8);
            args   = new Type[] {};
            method = type.GetMethod("Break", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Break_9);
            args   = new Type[] {};
            method = type.GetMethod("DebugBreak", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DebugBreak_10);
            args   = new Type[] { typeof(System.Object) };
            method = type.GetMethod("Log", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Log_11);
            args   = new Type[] { typeof(System.Object), typeof(UnityEngine.Object) };
            method = type.GetMethod("Log", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Log_12);
            args   = new Type[] { typeof(System.String), typeof(System.Object[]) };
            method = type.GetMethod("LogFormat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LogFormat_13);
            args   = new Type[] { typeof(UnityEngine.Object), typeof(System.String), typeof(System.Object[]) };
            method = type.GetMethod("LogFormat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LogFormat_14);
            args   = new Type[] { typeof(System.Object) };
            method = type.GetMethod("LogError", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LogError_15);
            args   = new Type[] { typeof(System.Object), typeof(UnityEngine.Object) };
            method = type.GetMethod("LogError", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LogError_16);
            args   = new Type[] { typeof(System.String), typeof(System.Object[]) };
            method = type.GetMethod("LogErrorFormat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LogErrorFormat_17);
            args   = new Type[] { typeof(UnityEngine.Object), typeof(System.String), typeof(System.Object[]) };
            method = type.GetMethod("LogErrorFormat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LogErrorFormat_18);
            args   = new Type[] {};
            method = type.GetMethod("ClearDeveloperConsole", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ClearDeveloperConsole_19);
            args   = new Type[] {};
            method = type.GetMethod("get_developerConsoleVisible", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_developerConsoleVisible_20);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_developerConsoleVisible", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_developerConsoleVisible_21);
            args   = new Type[] { typeof(System.Exception) };
            method = type.GetMethod("LogException", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LogException_22);
            args   = new Type[] { typeof(System.Exception), typeof(UnityEngine.Object) };
            method = type.GetMethod("LogException", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LogException_23);
            args   = new Type[] { typeof(System.Object) };
            method = type.GetMethod("LogWarning", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LogWarning_24);
            args   = new Type[] { typeof(System.Object), typeof(UnityEngine.Object) };
            method = type.GetMethod("LogWarning", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LogWarning_25);
            args   = new Type[] { typeof(System.String), typeof(System.Object[]) };
            method = type.GetMethod("LogWarningFormat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LogWarningFormat_26);
            args   = new Type[] { typeof(UnityEngine.Object), typeof(System.String), typeof(System.Object[]) };
            method = type.GetMethod("LogWarningFormat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LogWarningFormat_27);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("Assert", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Assert_28);
            args   = new Type[] { typeof(System.Boolean), typeof(UnityEngine.Object) };
            method = type.GetMethod("Assert", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Assert_29);
            args   = new Type[] { typeof(System.Boolean), typeof(System.Object) };
            method = type.GetMethod("Assert", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Assert_30);
            args   = new Type[] { typeof(System.Boolean), typeof(System.String) };
            method = type.GetMethod("Assert", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Assert_31);
            args   = new Type[] { typeof(System.Boolean), typeof(System.Object), typeof(UnityEngine.Object) };
            method = type.GetMethod("Assert", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Assert_32);
            args   = new Type[] { typeof(System.Boolean), typeof(System.String), typeof(UnityEngine.Object) };
            method = type.GetMethod("Assert", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Assert_33);
            args   = new Type[] { typeof(System.Boolean), typeof(System.String), typeof(System.Object[]) };
            method = type.GetMethod("AssertFormat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, AssertFormat_34);
            args   = new Type[] { typeof(System.Boolean), typeof(UnityEngine.Object), typeof(System.String), typeof(System.Object[]) };
            method = type.GetMethod("AssertFormat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, AssertFormat_35);
            args   = new Type[] { typeof(System.Object) };
            method = type.GetMethod("LogAssertion", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LogAssertion_36);
            args   = new Type[] { typeof(System.Object), typeof(UnityEngine.Object) };
            method = type.GetMethod("LogAssertion", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LogAssertion_37);
            args   = new Type[] { typeof(System.String), typeof(System.Object[]) };
            method = type.GetMethod("LogAssertionFormat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LogAssertionFormat_38);
            args   = new Type[] { typeof(UnityEngine.Object), typeof(System.String), typeof(System.Object[]) };
            method = type.GetMethod("LogAssertionFormat", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LogAssertionFormat_39);
            args   = new Type[] {};
            method = type.GetMethod("get_isDebugBuild", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_isDebugBuild_40);



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

            args   = new Type[] {};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }