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.TestVector3);

            args   = new Type[] { typeof(ILRuntimeTest.TestFramework.TestVector3), typeof(ILRuntimeTest.TestFramework.TestVector3) };
            method = type.GetMethod("op_Addition", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Addition_0);
            args   = new Type[] { typeof(ILRuntimeTest.TestFramework.TestVector3), typeof(System.Single) };
            method = type.GetMethod("op_Multiply", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Multiply_1);

            field = type.GetField("One", flag);
            app.RegisterCLRFieldGetter(field, get_One_0);
            app.RegisterCLRFieldSetter(field, set_One_0);
            field = type.GetField("X", flag);
            app.RegisterCLRFieldGetter(field, get_X_1);
            app.RegisterCLRFieldSetter(field, set_X_1);
            field = type.GetField("Y", flag);
            app.RegisterCLRFieldGetter(field, get_Y_2);
            app.RegisterCLRFieldSetter(field, set_Y_2);

            app.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);

            app.RegisterCLRCreateDefaultInstance(type, () => new ILRuntimeTest.TestFramework.TestVector3());
            app.RegisterCLRCreateArrayInstance(type, s => new ILRuntimeTest.TestFramework.TestVector3[s]);
        }
Ejemplo n.º 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(UnityEngine.Color);

            args   = new Type[] {};
            method = type.GetMethod("get_yellow", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_yellow_0);
            args   = new Type[] {};
            method = type.GetMethod("get_black", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_black_1);

            field = type.GetField("a", flag);
            app.RegisterCLRFieldGetter(field, get_a_0);
            app.RegisterCLRFieldSetter(field, set_a_0);

            app.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);

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

            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);
        }
Ejemplo n.º 3
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(ILRuntimeTest.TestFramework.TestVectorStruct);

            field = type.GetField("C", flag);
            app.RegisterCLRFieldGetter(field, get_C_0);
            app.RegisterCLRFieldSetter(field, set_C_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_C_0, AssignFromStack_C_0);
            field = type.GetField("B", flag);
            app.RegisterCLRFieldGetter(field, get_B_1);
            app.RegisterCLRFieldSetter(field, set_B_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_B_1, AssignFromStack_B_1);
            field = type.GetField("A", flag);
            app.RegisterCLRFieldGetter(field, get_A_2);
            app.RegisterCLRFieldSetter(field, set_A_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_A_2, AssignFromStack_A_2);

            app.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);

            app.RegisterCLRCreateDefaultInstance(type, () => new ILRuntimeTest.TestFramework.TestVectorStruct());
        }
        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("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);

            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);
        }
        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);

            field = type.GetField("value", flag);
            app.RegisterCLRFieldGetter(field, get_value_0);
            app.RegisterCLRFieldSetter(field, set_value_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_value_0, AssignFromStack_value_0);
            field = type.GetField("instance", flag);
            app.RegisterCLRFieldGetter(field, get_instance_1);
            app.RegisterCLRFieldSetter(field, set_instance_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_instance_1, AssignFromStack_instance_1);

            app.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);

            app.RegisterCLRCreateDefaultInstance(type, () => new ILRuntimeTest.TestFramework.TestStruct());
        }
Ejemplo n.º 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.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[] {};
            method = type.GetMethod("get_one", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_one_1);

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

            app.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);

            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);
        }
Ejemplo n.º 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.Vector3);

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

            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());
        }
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            Type type = typeof(ILRuntimeTest.TestFramework.TestVectorStruct);

            app.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);

            app.RegisterCLRCreateDefaultInstance(type, () => new ILRuntimeTest.TestFramework.TestVectorStruct());
        }
Ejemplo n.º 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(ILRuntimeTest.TestFramework.TestVector3);

            args   = new Type[] {};
            method = type.GetMethod("get_One2", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_One2_0);
            args   = new Type[] { typeof(ILRuntimeTest.TestFramework.TestVector3), typeof(System.Single) };
            method = type.GetMethod("op_Multiply", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Multiply_1);
            args   = new Type[] { typeof(ILRuntimeTest.TestFramework.TestVector3), typeof(ILRuntimeTest.TestFramework.TestVector3) };
            method = type.GetMethod("op_Addition", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Addition_2);
            args   = new Type[] { typeof(ILRuntimeTest.TestFramework.TestVector3).MakeByRefType(), typeof(System.Single).MakeByRefType() };
            method = type.GetMethod("Test", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Test_3);
            args   = new Type[] {};
            method = type.GetMethod("Normalize", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Normalize_4);
            args   = new Type[] {};
            method = type.GetMethod("DoTest2", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DoTest2_5);

            field = type.GetField("One", flag);
            app.RegisterCLRFieldGetter(field, get_One_0);
            app.RegisterCLRFieldSetter(field, set_One_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_One_0, AssignFromStack_One_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("Y", flag);
            app.RegisterCLRFieldGetter(field, get_Y_2);
            app.RegisterCLRFieldSetter(field, set_Y_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_Y_2, AssignFromStack_Y_2);
            field = type.GetField("Z", flag);
            app.RegisterCLRFieldGetter(field, get_Z_3);
            app.RegisterCLRFieldSetter(field, set_Z_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_Z_3, AssignFromStack_Z_3);
            field = type.GetField("TestDelegate2", flag);
            app.RegisterCLRFieldGetter(field, get_TestDelegate2_4);
            app.RegisterCLRFieldSetter(field, set_TestDelegate2_4);
            app.RegisterCLRFieldBinding(field, CopyToStack_TestDelegate2_4, AssignFromStack_TestDelegate2_4);

            app.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);

            app.RegisterCLRCreateDefaultInstance(type, () => new ILRuntimeTest.TestFramework.TestVector3());
            app.RegisterCLRCreateArrayInstance(type, s => new ILRuntimeTest.TestFramework.TestVector3[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);
        }
Ejemplo n.º 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(UnityEngine.Vector3);

            args   = new Type[] {};
            method = type.GetMethod("get_one", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_one_0);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(System.Single) };
            method = type.GetMethod("op_Multiply", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Multiply_1);
            args   = new Type[] {};
            method = type.GetMethod("get_zero", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_zero_2);
            args   = new Type[] { typeof(System.Single), typeof(UnityEngine.Vector3) };
            method = type.GetMethod("op_Multiply", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Multiply_3);
            args   = new Type[] {};
            method = type.GetMethod("get_back", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_back_4);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3) };
            method = type.GetMethod("op_Addition", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Addition_5);
            args   = new Type[] {};
            method = type.GetMethod("get_forward", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_forward_6);

            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 UnityEngine.Vector3());

            args   = new Type[] { typeof(System.Single), typeof(System.Single), typeof(System.Single) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
Ejemplo n.º 11
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.TestVectorStruct2);

            app.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);

            app.RegisterCLRCreateDefaultInstance(type, () => new ILRuntimeTest.TestFramework.TestVectorStruct2());
        }
Ejemplo n.º 12
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.Color32);

            MethodInfo[] methods = type.GetMethods(flag).Where(t => !t.IsGenericMethod).ToArray();
            args   = new Type[] { typeof(UnityEngine.Color) };
            method = methods.Where(t => t.Name.Equals("op_Implicit") && t.ReturnType == typeof(UnityEngine.Color32) && t.CheckMethodParams(args)).Single();
            app.RegisterCLRMethodRedirection(method, op_Implicit_0);
            args   = new Type[] { typeof(UnityEngine.Color32) };
            method = methods.Where(t => t.Name.Equals("op_Implicit") && t.ReturnType == typeof(UnityEngine.Color) && t.CheckMethodParams(args)).Single();
            app.RegisterCLRMethodRedirection(method, op_Implicit_1);
            args   = new Type[] { typeof(UnityEngine.Color32), typeof(UnityEngine.Color32), typeof(System.Single) };
            method = type.GetMethod("Lerp", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Lerp_2);
            args   = new Type[] { typeof(UnityEngine.Color32), typeof(UnityEngine.Color32), typeof(System.Single) };
            method = type.GetMethod("LerpUnclamped", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LerpUnclamped_3);
            args   = new Type[] {};
            method = type.GetMethod("ToString", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToString_4);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("ToString", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToString_5);

            field = type.GetField("r", flag);
            app.RegisterCLRFieldGetter(field, get_r_0);
            app.RegisterCLRFieldSetter(field, set_r_0);
            field = type.GetField("g", flag);
            app.RegisterCLRFieldGetter(field, get_g_1);
            app.RegisterCLRFieldSetter(field, set_g_1);
            field = type.GetField("b", flag);
            app.RegisterCLRFieldGetter(field, get_b_2);
            app.RegisterCLRFieldSetter(field, set_b_2);
            field = type.GetField("a", flag);
            app.RegisterCLRFieldGetter(field, get_a_3);
            app.RegisterCLRFieldSetter(field, set_a_3);

            app.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);

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

            args   = new Type[] { typeof(System.Byte), typeof(System.Byte), typeof(System.Byte), typeof(System.Byte) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
Ejemplo n.º 13
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::RoleOperation_DeleteRoleProto);

            field = type.GetField("RoleId", flag);
            app.RegisterCLRFieldGetter(field, get_RoleId_0);
            app.RegisterCLRFieldSetter(field, set_RoleId_0);

            app.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);

            app.RegisterCLRCreateDefaultInstance(type, () => new global::RoleOperation_DeleteRoleProto());
        }
        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(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());
        }
Ejemplo n.º 15
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::JobUpdateSetHealthBar);

            field = type.GetField("m_currentHP", flag);
            app.RegisterCLRFieldGetter(field, get_m_currentHP_0);
            app.RegisterCLRFieldSetter(field, set_m_currentHP_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_m_currentHP_0, AssignFromStack_m_currentHP_0);
            field = type.GetField("m_maxHP", flag);
            app.RegisterCLRFieldGetter(field, get_m_maxHP_1);
            app.RegisterCLRFieldSetter(field, set_m_maxHP_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_m_maxHP_1, AssignFromStack_m_maxHP_1);

            app.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);

            app.RegisterCLRCreateDefaultInstance(type, () => new global::JobUpdateSetHealthBar());
        }
Ejemplo n.º 16
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(EB.Sparx.EndPointOptions);

            field = type.GetField("KeepAlive", flag);
            app.RegisterCLRFieldGetter(field, get_KeepAlive_0);
            app.RegisterCLRFieldSetter(field, set_KeepAlive_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_KeepAlive_0, AssignFromStack_KeepAlive_0);
            field = type.GetField("Key", flag);
            app.RegisterCLRFieldGetter(field, get_Key_1);
            app.RegisterCLRFieldSetter(field, set_Key_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_Key_1, AssignFromStack_Key_1);

            app.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);

            app.RegisterCLRCreateDefaultInstance(type, () => new EB.Sparx.EndPointOptions());
        }
Ejemplo n.º 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.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]);
        }
Ejemplo n.º 18
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("Distance", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Distance_6);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3) };
            method = type.GetMethod("op_Addition", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Addition_7);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3) };
            method = type.GetMethod("Cross", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Cross_8);
            args   = new Type[] { typeof(System.Single), typeof(UnityEngine.Vector3) };
            method = type.GetMethod("op_Multiply", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Multiply_9);
            args   = new Type[] {};
            method = type.GetMethod("get_normalized", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_normalized_10);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(System.Single) };
            method = type.GetMethod("op_Multiply", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Multiply_11);
            args   = new Type[] {};
            method = type.GetMethod("get_one", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_one_12);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3) };
            method = type.GetMethod("op_Equality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Equality_13);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3) };
            method = type.GetMethod("Angle", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Angle_14);
            args   = new Type[] {};
            method = type.GetMethod("get_forward", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_forward_15);

            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 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);
            args   = new Type[] { typeof(System.Single), typeof(System.Single) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_1);
        }
Ejemplo n.º 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.Vector3);

            args   = new Type[] {};
            method = type.GetMethod("get_one", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_one_0);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(System.Single) };
            method = type.GetMethod("op_Multiply", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Multiply_1);
            args   = new Type[] {};
            method = type.GetMethod("get_up", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_up_2);
            args   = new Type[] {};
            method = type.GetMethod("get_zero", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_zero_3);
            args   = new Type[] {};
            method = type.GetMethod("get_forward", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_forward_4);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3) };
            method = type.GetMethod("op_Addition", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Addition_5);
            args   = new Type[] {};
            method = type.GetMethod("get_right", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_right_6);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3) };
            method = type.GetMethod("op_Subtraction", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Subtraction_7);
            args   = new Type[] {};
            method = type.GetMethod("get_magnitude", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_magnitude_8);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(System.Single) };
            method = type.GetMethod("op_Division", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Division_9);
            args   = new Type[] {};
            method = type.GetMethod("Normalize", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Normalize_10);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3) };
            method = type.GetMethod("ProjectOnPlane", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ProjectOnPlane_11);
            args   = new Type[] {};
            method = type.GetMethod("get_down", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_down_12);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3), typeof(System.Single), typeof(System.Single) };
            method = type.GetMethod("RotateTowards", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, RotateTowards_13);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3) };
            method = type.GetMethod("Dot", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Dot_14);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3) };
            method = type.GetMethod("Scale", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Scale_15);
            args   = new Type[] { typeof(System.Single), typeof(UnityEngine.Vector3) };
            method = type.GetMethod("op_Multiply", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Multiply_16);

            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);
            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), typeof(System.Single) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
Ejemplo n.º 20
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.Hash128);

            args   = new Type[] {};
            method = type.GetMethod("get_isValid", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_isValid_0);
            args   = new Type[] { typeof(UnityEngine.Hash128) };
            method = type.GetMethod("CompareTo", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CompareTo_1);
            args   = new Type[] {};
            method = type.GetMethod("ToString", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToString_2);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("Parse", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Parse_3);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("Compute", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Compute_4);
            args   = new Type[] { typeof(System.Object) };
            method = type.GetMethod("Equals", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Equals_5);
            args   = new Type[] { typeof(UnityEngine.Hash128) };
            method = type.GetMethod("Equals", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Equals_6);
            args   = new Type[] {};
            method = type.GetMethod("GetHashCode", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetHashCode_7);
            args   = new Type[] { typeof(System.Object) };
            method = type.GetMethod("CompareTo", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CompareTo_8);
            args   = new Type[] { typeof(UnityEngine.Hash128), typeof(UnityEngine.Hash128) };
            method = type.GetMethod("op_Equality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Equality_9);
            args   = new Type[] { typeof(UnityEngine.Hash128), typeof(UnityEngine.Hash128) };
            method = type.GetMethod("op_Inequality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Inequality_10);
            args   = new Type[] { typeof(UnityEngine.Hash128), typeof(UnityEngine.Hash128) };
            method = type.GetMethod("op_LessThan", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_LessThan_11);
            args   = new Type[] { typeof(UnityEngine.Hash128), typeof(UnityEngine.Hash128) };
            method = type.GetMethod("op_GreaterThan", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_GreaterThan_12);


            app.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);

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

            args   = new Type[] { typeof(System.UInt32), typeof(System.UInt32), typeof(System.UInt32), typeof(System.UInt32) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
            args   = new Type[] { typeof(System.UInt64), typeof(System.UInt64) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_1);
        }
Ejemplo n.º 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.Vector2);

            MethodInfo[] methods = type.GetMethods(flag).Where(t => !t.IsGenericMethod).ToArray();
            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_Division", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Division_1);
            args   = new Type[] { typeof(UnityEngine.Vector2), typeof(UnityEngine.Vector2) };
            method = type.GetMethod("op_Multiply", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Multiply_2);
            args   = new Type[] { typeof(UnityEngine.Vector2), typeof(UnityEngine.Vector2) };
            method = type.GetMethod("op_Addition", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Addition_3);
            args   = new Type[] { typeof(UnityEngine.Vector2), typeof(UnityEngine.Vector2) };
            method = type.GetMethod("op_Subtraction", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Subtraction_4);
            args   = new Type[] {};
            method = type.GetMethod("get_zero", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_zero_5);
            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_6);
            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_7);
            args   = new Type[] { typeof(System.Single), typeof(System.Single) };
            method = type.GetMethod("Set", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Set_8);
            args   = new Type[] { typeof(UnityEngine.Vector2), typeof(UnityEngine.Vector2) };
            method = type.GetMethod("Distance", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Distance_9);
            args   = new Type[] { typeof(UnityEngine.Vector2), typeof(UnityEngine.Vector2) };
            method = type.GetMethod("op_Inequality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Inequality_10);
            args   = new Type[] { typeof(UnityEngine.Vector2), typeof(UnityEngine.Vector2) };
            method = type.GetMethod("op_Equality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Equality_11);
            args   = new Type[] {};
            method = type.GetMethod("get_normalized", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_normalized_12);
            args   = new Type[] { typeof(UnityEngine.Vector2), typeof(System.Single) };
            method = type.GetMethod("op_Multiply", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Multiply_13);
            args   = new Type[] { typeof(UnityEngine.Vector2), typeof(UnityEngine.Vector2), typeof(System.Single) };
            method = type.GetMethod("Lerp", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Lerp_14);

            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);

            app.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);

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

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