Пример #1
0
        public override void imethod_3(
            Class95 loop,
            Class88 curve,
            Class107 coedge,
            Class917 approximation,
            Class258 accuracy)
        {
            Matrix4D    canonicalTransformation = this.FromCanonicalTransformation;
            Interface27 interval          = this.Interval;
            bool        directionReversed = coedge.DirectionReversed;
            Class102    startVertex       = coedge.StartVertex;
            Class102    endVertex         = coedge.EndVertex;
            Interface27 nterface27;

            if (startVertex != endVertex)
            {
                Matrix4D inverse  = canonicalTransformation.GetInverse();
                Class105 point1   = startVertex.Point;
                Class105 point2   = endVertex.Point;
                Point3D  point3D1 = point1.method_4(inverse);
                Point3D  point3D2 = point2.method_4(inverse);
                nterface27 = (Interface27) new Class437(System.Math.Atan2(point3D1.Y, point3D1.X), System.Math.Atan2(point3D2.Y, point3D2.X));
            }
            else
            {
                Matrix4D inverse = canonicalTransformation.GetInverse();
                Point3D  point3D = startVertex.Point.method_4(inverse);
                double   start   = System.Math.Atan2(point3D.Y, point3D.X);
                double   end     = directionReversed ? start - 2.0 * System.Math.PI : start + 2.0 * System.Math.PI;
                nterface27 = (Interface27) new Class437(start, end);
            }
            int    num1   = Class247.smethod_7(this.vector3D_1.GetLength(), accuracy);
            double start1 = nterface27.Start;
            double end1   = nterface27.End;

            if (directionReversed)
            {
                if (start1 < end1)
                {
                    end1 -= 2.0 * System.Math.PI;
                }
            }
            else if (start1 > end1)
            {
                end1 += 2.0 * System.Math.PI;
            }
            double num2 = (end1 - start1) / (double)num1;

            approximation.method_0(coedge.StartLocation);
            for (int index = 1; index < num1; ++index)
            {
                double  num3  = (double)index * num2 + start1;
                double  x     = System.Math.Cos(num3);
                double  y     = System.Math.Sin(num3);
                Point3D point = canonicalTransformation.Transform(new Point3D(x, y, 0.0));
                approximation.method_0(point);
            }
            approximation.method_0(coedge.EndLocation);
        }
Пример #2
0
 // Token: 0x06000504 RID: 1284 RVA: 0x00005577 File Offset: 0x00003777
 public static Type smethod_0(Type type_0)
 {
     if (!type_0.IsByRef && !type_0.IsArray && !type_0.IsPointer)
     {
         return(type_0);
     }
     return(Class102.smethod_0(type_0.GetElementType()));
 }
Пример #3
0
    // Token: 0x06000152 RID: 338 RVA: 0x000037C1 File Offset: 0x000019C1
    public override Class80 vmethod_4()
    {
        Class102 @class = new Class102();

        @class.method_3(this.method_2());
        @class.method_1(base.method_0());
        return(@class);
    }
 // Token: 0x06001CA6 RID: 7334 RVA: 0x0005C5CC File Offset: 0x0005A7CC
 public CustomizeContentPack(Class102 settings)
 {
     this.InitializeComponent();
     this.Text       = string.Format("Customizing {0} Content Pack", string.IsNullOrEmpty(settings.Name) ? "Untitled" : settings.Name);
     base.Icon       = Class480.Content_Icon;
     this.class374_0 = new Class374();
     this.class102_0 = settings;
 }
Пример #5
0
    private static void smethod_9(Class857 A_0, Paragraph A_1, string A_2, FieldType A_3, CharacterFormat A_4, Style A_5)
    {
        int      num    = 0x11;
        Class396 class2 = A_0.method_11();
        string   str    = class2.method_12(BookmarkStart.b("匶堸伺尼ሾ㉀㝂㱄⭆ⱈ晊⍌⹎㱐㙒", 0x11), null);
        Class102 class3 = (Class102)A_0.method_13().method_2(str, null, A_0.method_20(), true);

        if ((class3 != null) && (class3.method_13() != null))
        {
            class3.method_13().method_37(A_4);
        }
        smethod_12(A_0, A_1, A_3, string.Format(BookmarkStart.b("᜶䈸଺䀼Ἶᵀ͂敄敆㉈穊が济", num), A_2, class3.method_21()), class2.method_21(), A_4, A_5);
    }
Пример #6
0
    private static string smethod_2(Class102 A_0)
    {
        int num = 0x10;

        switch (A_0.method_13().LocaleIdASCII)
        {
        case 0x411:
            return(BookmarkStart.b("圵夷", num));

        case 0x804:
            return(BookmarkStart.b("愵", num));
        }
        return(BookmarkStart.b("刵尷", num));
    }
Пример #7
0
    // Token: 0x060009F4 RID: 2548 RVA: 0x000385E4 File Offset: 0x000367E4
    public static DataContractAttribute smethod_2(Type type_0)
    {
        Type type = type_0;

        while (type != null)
        {
            DataContractAttribute dataContractAttribute = Class102 <DataContractAttribute> .smethod_0(type);

            if (dataContractAttribute != null)
            {
                return(dataContractAttribute);
            }
            type = type.smethod_6();
        }
        return(null);
    }
Пример #8
0
    // Token: 0x060009F5 RID: 2549 RVA: 0x00038614 File Offset: 0x00036814
    public static DataMemberAttribute smethod_3(object object_0)
    {
        if (object_0.smethod_1() == MemberTypes.Field)
        {
            return(Class102 <DataMemberAttribute> .smethod_0(object_0));
        }
        PropertyInfo        propertyInfo        = (PropertyInfo)object_0;
        DataMemberAttribute dataMemberAttribute = Class102 <DataMemberAttribute> .smethod_0(propertyInfo);

        if (dataMemberAttribute == null && propertyInfo.smethod_0())
        {
            Type type = propertyInfo.DeclaringType;
            while (dataMemberAttribute == null && type != null)
            {
                PropertyInfo propertyInfo2 = (PropertyInfo)Class90.smethod_37(type, propertyInfo);
                if (propertyInfo2 != null && propertyInfo2.smethod_0())
                {
                    dataMemberAttribute = Class102 <DataMemberAttribute> .smethod_0(propertyInfo2);
                }
                type = type.smethod_6();
            }
        }
        return(dataMemberAttribute);
    }
Пример #9
0
    private static void smethod_3(Class857 A_0, Class102 A_1)
    {
        int      num    = 4;
        Class396 class2 = A_0.method_11();

        class2.method_18();
        string str  = "";
        string str2 = "";

        while (class2.method_19())
        {
            string str3;
            if (!Class857.smethod_8(class2, A_1) && ((str3 = class2.method_1()) != null))
            {
                if (!(str3 == BookmarkStart.b("䘩䴫䀭圯䜱唳儵崷", num)))
                {
                    if (str3 == BookmarkStart.b("䤩䌫嬭帯䘱䘳伵", num))
                    {
                        str2 = class2.method_3();
                    }
                }
                else
                {
                    str = class2.method_3();
                }
            }
        }
        if (Class567.smethod_16(str) || Class567.smethod_16(str2))
        {
            if (A_1.method_13() == null)
            {
                A_1.method_14(new CharacterFormat());
            }
            A_1.method_13().SetAttr(380, (short)Class922.smethod_81(string.Format(BookmarkStart.b("儩ᰫ匭ᴯ䤱Գ䬵", num), str, str2)));
        }
    }
 public override void Visit(Class102 c) { }
Пример #11
0
    internal static void smethod_0(Class857 A_0, bool A_1)
    {
        int      num    = 1;
        Class396 class2 = A_0.method_11();
        string   str    = class2.method_1();
        Class102 class3 = new Class102();

        smethod_3(A_0, class3);
        bool flag = false;

        class2.method_18();
        bool flag2 = true;

        if (class2.method_12(BookmarkStart.b("匦嬨䨪䌬尮崰娲䄴制䬸娺䤼嘾⹀ⵂ桄ⅆ♈㥊⁌⹎═", 1), "") == BookmarkStart.b("❨", 1))
        {
            flag2 = false;
        }
        string str2 = class2.method_12(BookmarkStart.b("䬦䠨䔪䨬娮倰吲倴", num), "").ToLower();
        string str3 = class2.method_12(BookmarkStart.b("䐦䘨帪䌬嬮䌰䨲", num), "").ToUpper();

        if (!string.IsNullOrEmpty(str2) && !string.IsNullOrEmpty(str3))
        {
            class3.method_13().LocaleIdASCII = (short)((LocaleIDs)Enum.Parse(typeof(LocaleIDs), str2 + BookmarkStart.b("砦", num) + str3));
        }
        CultureInfo info = new CultureInfo(str2 + BookmarkStart.b("ਦ", num) + str3);

        string[] strArray = info.DateTimeFormat.SortableDateTimePattern.Replace(BookmarkStart.b("ਦ", num), "").Replace(BookmarkStart.b("ᴦ", num), "").Replace(BookmarkStart.b("&ศ", num), BookmarkStart.b("&", num)).Split(new char[] { '\'' });
        for (int i = 0; i < strArray.Length; i++)
        {
            strArray[i] = strArray[i].Substring(0, strArray[i].Length / 2);
        }
        while (class2.method_9(str))
        {
            CharacterFormat format;
            string          key = class2.method_1();
            if (key != null)
            {
                int num3;
                if (Class1160.dictionary_222 == null)
                {
                    Dictionary <string, int> dictionary1 = new Dictionary <string, int>(11);
                    dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ䄰䄲娴䜶尸䤺䤼嘾⑀あ", num), 0);
                    dictionary1.Add(BookmarkStart.b("匦䰨匪夬", num), 1);
                    dictionary1.Add(BookmarkStart.b("䌦䠨刪", num), 2);
                    dictionary1.Add(BookmarkStart.b("䨦䘨䔪夬䜮", num), 3);
                    dictionary1.Add(BookmarkStart.b("带䰨䨪弬", num), 4);
                    dictionary1.Add(BookmarkStart.b("䈦嬨䨪", num), 5);
                    dictionary1.Add(BookmarkStart.b("䌦䠨刪,䀮地Ḳ䈴制尸债", num), 6);
                    dictionary1.Add(BookmarkStart.b("伦䘨帪弬尮", num), 7);
                    dictionary1.Add(BookmarkStart.b("䘦䐨ت崬䈮", num), 8);
                    dictionary1.Add(BookmarkStart.b("䨦䀨䔪堬嬮吰䀲", num), 9);
                    dictionary1.Add(BookmarkStart.b("否䰨䠪䈬䄮唰䀲", num), 10);
                    Class1160.dictionary_222 = dictionary1;
                }
                if (Class1160.dictionary_222.TryGetValue(key, out num3))
                {
                    switch (num3)
                    {
                    case 0:
                        goto Label_02D1;

                    case 1:
                    {
                        class3.method_22(string.Format(BookmarkStart.b("尦ᤨ嘪嘬Ḯ䰰", num), class3.method_21(), class2.method_21()));
                        continue;
                    }

                    case 2:
                    {
                        smethod_1(class3, flag2 ? strArray[2] : BookmarkStart.b("昦", num));
                        continue;
                    }

                    case 3:
                    {
                        if (!flag2)
                        {
                            goto Label_0386;
                        }
                        smethod_1(class3, smethod_5(class2) ? (strArray[1] + smethod_6(class2, strArray[1])) : smethod_6(class2, strArray[1]));
                        continue;
                    }

                    case 4:
                    {
                        smethod_1(class3, flag2 ? smethod_6(class2, strArray[0]) : smethod_6(class2, BookmarkStart.b("戦氨", num)));
                        continue;
                    }

                    case 5:
                    {
                        smethod_1(class3, BookmarkStart.b("䀦", num));
                        continue;
                    }

                    case 6:
                    {
                        smethod_1(class3, smethod_6(class2, smethod_2(class3)));
                        continue;
                    }

                    case 7:
                    {
                        smethod_1(class3, smethod_6(class2, strArray[4]));
                        continue;
                    }

                    case 8:
                    {
                        smethod_1(class3, (class3.method_13().LocaleIdASCII == 0x804) ? BookmarkStart.b("䘦䐨嬪䀬", num) : BookmarkStart.b("䘦䐨Ъ崬䈮", num));
                        flag = true;
                        continue;
                    }

                    case 9:
                    {
                        smethod_1(class3, smethod_6(class2, strArray[5]));
                        continue;
                    }

                    case 10:
                    {
                        smethod_1(class3, smethod_6(class2, strArray[6]));
                        continue;
                    }
                    }
                }
            }
            goto Label_045D;
Label_02D1:
            format = Class1141.smethod_0(A_0, class3);
            if (format.Count > 0)
            {
                if (class3.method_13() != null)
                {
                    class3.method_13().method_37(format);
                }
                class3.method_14(format);
            }
            continue;
Label_0386:
            smethod_1(class3, BookmarkStart.b("栦", num));
            continue;
Label_045D:
            class2.vmethod_1();
        }
        if (flag)
        {
            class3.method_22(class3.method_21().Replace(BookmarkStart.b("漦", num), BookmarkStart.b("伦", num)));
        }
        A_0.method_13().method_1(class3, A_0.method_20(), A_1);
    }
Пример #12
0
 // Token: 0x060009F2 RID: 2546 RVA: 0x0000950A File Offset: 0x0000770A
 public static LbemhZdkgQyvmOHEhvD smethod_0 <LbemhZdkgQyvmOHEhvD>(object object_0) where LbemhZdkgQyvmOHEhvD : Attribute
 {
     return(Class102 <LbemhZdkgQyvmOHEhvD> .smethod_0(object_0));
 }
Пример #13
0
 private static void smethod_1(Class102 A_0, string A_1)
 {
     A_0.method_22(string.Format(BookmarkStart.b("临ܶ䐸䀺఼䈾", 15), A_0.method_21(), A_1));
 }
 // Token: 0x060029DA RID: 10714 RVA: 0x0001359C File Offset: 0x0001179C
 public EventArgs42(Class102 contentPackData, Version minimumVersion, bool isPatch)
 {
     this.ContentPackData = contentPackData;
     this.MinimumVersion  = minimumVersion;
     this.IsPatch         = isPatch;
 }
 public abstract void Visit(Class102 c);
Пример #16
0
 // Token: 0x060023B1 RID: 9137 RVA: 0x0000F561 File Offset: 0x0000D761
 public Class135(Class102 contentPackSettings, Class132 contentPack)
 {
     this.ContentPackSettings = contentPackSettings;
     this.ContentPack         = contentPack;
 }
Пример #17
0
    // Token: 0x060004E5 RID: 1253 RVA: 0x00028164 File Offset: 0x00026364
    public static Class139 smethod_1(object object_0, Type type_0)
    {
        Class139 @class = object_0 as Class139;

        if (@class != null)
        {
            return(@class);
        }
        if (type_0 == null)
        {
            if (object_0 == null)
            {
                return(new Class166());
            }
            type_0 = object_0.GetType();
        }
        type_0 = Class102.smethod_1(type_0);
        if (type_0 == Class28.type_0)
        {
            @class = new Class166();
            if (object_0 != null && object_0.GetType() != Class28.type_0)
            {
                @class.method_1(object_0.GetType());
            }
        }
        else if (Class99.smethod_0 <Array>(type_0))
        {
            @class = new Class140();
        }
        else if (Class99.smethod_0 <string>(type_0))
        {
            @class = new Class143();
        }
        else if (Class99.smethod_0 <IntPtr>(type_0))
        {
            @class = new Class146();
        }
        else if (Class99.smethod_0 <UIntPtr>(type_0))
        {
            @class = new Class157();
        }
        else if (Class99.smethod_0 <ulong>(type_0))
        {
            @class = new Class165();
        }
        else if (Class99.smethod_0 <uint>(type_0))
        {
            @class = new Class163();
        }
        else if (Class99.smethod_0 <ushort>(type_0))
        {
            @class = new Class159();
        }
        else if (Class99.smethod_0 <long>(type_0))
        {
            @class = new Class156();
        }
        else if (Class99.smethod_0 <int>(type_0))
        {
            @class = new Class145();
        }
        else if (Class99.smethod_0 <short>(type_0))
        {
            @class = new Class141();
        }
        else if (Class99.smethod_0 <byte>(type_0))
        {
            @class = new Class164();
        }
        else if (Class99.smethod_0 <sbyte>(type_0))
        {
            @class = new Class161();
        }
        else if (Class99.smethod_0 <double>(type_0))
        {
            @class = new Class158();
        }
        else if (Class99.smethod_0 <float>(type_0))
        {
            @class = new Class162();
        }
        else if (Class99.smethod_0 <bool>(type_0))
        {
            @class = new Class144();
        }
        else if (Class99.smethod_0 <char>(type_0))
        {
            @class = new Class155();
        }
        else if (Class28.smethod_0(type_0))
        {
            Class166 class2 = new Class166();
            class2.method_1(type_0);
            @class = class2;
        }
        else
        {
            if (Class99.smethod_0 <Enum>(type_0))
            {
                Enum enum_;
                if (object_0 == null)
                {
                    if (type_0 == Class28.type_2)
                    {
                        enum_ = null;
                    }
                    else
                    {
                        enum_ = (Enum)Activator.CreateInstance(type_0);
                    }
                }
                else if (type_0 == Class28.type_2 && object_0 is Enum)
                {
                    enum_ = (Enum)object_0;
                }
                else
                {
                    enum_ = (Enum)Enum.ToObject(type_0, object_0);
                }
                return(new Class160(enum_));
            }
            if (Class99.smethod_0 <ValueType>(type_0))
            {
                if (object_0 == null)
                {
                    object object_;
                    if (type_0 == Class28.type_3)
                    {
                        object_ = null;
                    }
                    else
                    {
                        object_ = Activator.CreateInstance(type_0);
                    }
                    @class = new Class154(object_);
                }
                else
                {
                    if (object_0.GetType() != type_0)
                    {
                        try
                        {
                            object_0 = Convert.ChangeType(object_0, type_0);
                        }
                        catch
                        {
                        }
                    }
                    @class = new Class154(object_0);
                }
                return(@class);
            }
            @class = new Class166();
        }
        if (object_0 != null)
        {
            @class.vmethod_1(object_0);
        }
        return(@class);
    }