Example #1
0
        // Token: 0x06002CCF RID: 11471 RVA: 0x000ACAD0 File Offset: 0x000AACD0
        protected override void vmethod_2(BinaryReader reader, int version)
        {
            this.EstatePlantSettings = new Dictionary <Enum13, Class94>();
            this.BeanCombinations    = new List <Class322>();
            int num = reader.ReadInt32();

            for (int i = 0; i < num; i++)
            {
                Enum13  key   = (Enum13)reader.ReadByte();
                Class94 value = new Class94(reader);
                if (!this.EstatePlantSettings.ContainsKey(key))
                {
                    this.EstatePlantSettings.Add(key, value);
                }
            }
            this.PlantMethod = (Enum115)reader.ReadByte();
            num = reader.ReadInt32();
            ReadOnlyDictionary <int, Class322> readOnlyDictionary_ = Class322.readOnlyDictionary_0;

            for (int j = 0; j < num; j++)
            {
                int key2 = reader.ReadInt32();
                if (readOnlyDictionary_.ContainsKey(key2))
                {
                    this.BeanCombinations.Add(readOnlyDictionary_[key2]);
                }
            }
            base.vmethod_2(reader, version);
        }
Example #2
0
 private static void smethod_0()
 {
     lock (Object0)
     {
         if (List0.Count == 0)
         {
             try
             {
                 if (OpenAl.alcIsExtensionPresent(IntPtr.Zero, "ALC_ENUMERATION_EXT"))
                 {
                     _enum130 = Enum13.Const1;
                     List0.AddRange(OpenAl.smethod_1(IntPtr.Zero, Enum8.Const1));
                 }
                 else
                 {
                     _enum130 = Enum13.Const0;
                 }
                 foreach (var arg650 in List0)
                 {
                 }
             }
             catch (DllNotFoundException)
             {
                 _bool3 = false;
             }
         }
     }
 }
Example #3
0
        private bool method_4(int int_26)
        {
            if (int_26 < this.int_9)
            {
                char ch = this.string_0[int_26];
                switch (ch)
                {
                case 'Z':
                case 'z':
                    this.enum13_0 = Enum13.Utc;
                    int_26++;
                    goto Label_00D4;
                }
                if (((((int_26 + 5) < this.int_9) && this.method_6(int_26 + int_22, out this.int_7)) && ((this.int_7 <= 0x63) && this.method_7(int_26 + int_23, ':'))) && (this.method_6(int_26 + int_24, out this.int_8) && (this.int_8 <= 0x63)))
                {
                    switch (ch)
                    {
                    case '+':
                        this.enum13_0 = Enum13.LocalEastOfUtc;
                        int_26       += int_25;
                        break;

                    case '-':
                        this.enum13_0 = Enum13.LocalWestOfUtc;
                        int_26       += int_25;
                        break;
                    }
                }
            }
Label_00D4:
            return(int_26 == this.int_9);
        }
Example #4
0
        // Token: 0x06002819 RID: 10265 RVA: 0x000943D4 File Offset: 0x000925D4
        public static string smethod_1(this Enum13 house)
        {
            switch (house)
            {
            case Enum13.const_0:
                return("Red House");

            case Enum13.const_1:
                return("Green House");

            case Enum13.const_2:
                return("Purple House");

            case Enum13.const_3:
                return("Blue House");

            case Enum13.const_4:
                return("Pink House");

            case Enum13.const_5:
                return("Yellow House");

            default:
                throw new NotSupportedException(string.Format("Cannot format house color: '{0}'.", house));
            }
        }
Example #5
0
 // Token: 0x060010A7 RID: 4263 RVA: 0x0000DE76 File Offset: 0x0000C076
 public Class195(object object_1, Enum13 enum13_1)
 {
     Class202.ofdixO4zTbIfy();
     base..ctor();
     this.object_0 = object_1;
     this.enum13_0 = enum13_1;
 }
 // Token: 0x0600251C RID: 9500 RVA: 0x0007ED54 File Offset: 0x0007CF54
 public Class94(Enum13 estateHome)
 {
     this.Flowers       = new Dictionary <Enum99, Class93>();
     this.Trees         = new Dictionary <Enum99, Class109>();
     this.HouseColor    = estateHome;
     this.GardenFlowers = true;
     this.GardenTrees   = true;
     base.Pick          = true;
     base.Plant         = true;
     base.Water         = true;
     base.Enabled       = false;
     this.Customized    = false;
     this.WaterCount    = 3;
     this.Flowers.Add(Enum99.flag_5, new Class93());
     this.Flowers.Add(Enum99.flag_6, new Class93());
     this.Flowers.Add(Enum99.flag_7, new Class93());
     this.Flowers.Add(Enum99.flag_8, new Class93());
     this.Flowers.Add(Enum99.flag_9, new Class93());
     this.Flowers.Add(Enum99.flag_10, new Class93());
     this.Flowers.Add(Enum99.flag_11, new Class93());
     this.Flowers.Add(Enum99.flag_12, new Class93());
     this.Flowers.Add(Enum99.flag_13, new Class93());
     this.Flowers.Add(Enum99.flag_14, new Class93());
     this.Trees.Add(Enum99.flag_15, new Class109());
     this.Trees.Add(Enum99.flag_16, new Class109());
     this.Trees.Add(Enum99.flag_17, new Class109());
     this.Trees.Add(Enum99.flag_18, new Class109());
     this.Trees.Add(Enum99.flag_19, new Class109());
     this.Trees.Add(Enum99.flag_20, new Class109());
     this.Trees.Add(Enum99.flag_21, new Class109());
     this.Trees.Add(Enum99.flag_22, new Class109());
 }
        // Token: 0x06002B99 RID: 11161 RVA: 0x000A9E38 File Offset: 0x000A8038
        private static SolidBrush smethod_0(Enum13 estate)
        {
            switch (estate)
            {
            case Enum13.const_0:
                return(new SolidBrush(Color.Red));

            case Enum13.const_1:
                return(new SolidBrush(Color.Green));

            case Enum13.const_2:
                return(new SolidBrush(Color.Purple));

            case Enum13.const_4:
                return(new SolidBrush(Color.Pink));

            case Enum13.const_5:
                return(new SolidBrush(Color.Yellow));
            }
            return(new SolidBrush(Color.Blue));
        }
Example #8
0
 // Token: 0x060010A4 RID: 4260 RVA: 0x0000DE3C File Offset: 0x0000C03C
 private Class194(Enum13 enum13_1)
 {
     Class202.ofdixO4zTbIfy();
     base..ctor();
     this.Type = enum13_1;
 }
Example #9
0
 // Token: 0x0600110D RID: 4365
 // RVA: 0x0005A80C File Offset: 0x00058A0C
 internal int Initialize(GClass1 gclass1_1, Enum11 enum11_1, int int_35, int int_36, Enum13 enum13_1)
 {
     this.gclass1_0 = gclass1_1;
     this.gclass1_0.string_0 = null;
     if (int_35 < 9 || int_35 > 15)
     {
         throw new GException0("windowBits must be in the range 9..15.");
     }
     if (int_36 < 1 || int_36 > 9)
     {
         throw new GException0(string.Format("memLevel must be in the range 1.. {0}", 9));
     }
     this.gclass1_0.class137_0 = this;
     this.int_31 = int_35;
     this.int_33 = 1 << this.int_31;
     this.int_32 = this.int_33 - 1;
     this.int_3 = int_36 + 7;
     this.int_6 = 1 << this.int_3;
     this.int_4 = this.int_6 - 1;
     this.int_5 = (this.int_3 + 3 - 1) / 3;
     this.byte_1 = new byte[this.int_33 * 2];
     this.short_6 = new short[this.int_33];
     this.short_5 = new short[this.int_6];
     this.int_16 = 1 << int_36 + 6;
     this.byte_0 = new byte[this.int_16 * 4];
     this.int_2 = this.int_16 / 2;
     this.int_12 = 3 * this.int_16;
     this.enum11_0 = enum11_1;
     this.enum13_0 = enum13_1;
     this.sbyte_2 = 8;
     this.Reset();
     return 0;
 }
Example #10
0
 // Token: 0x0600110C RID: 4364
 // RVA: 0x00010658 File Offset: 0x0000E858
 internal int Initialize(GClass1 gclass1_1, Enum11 enum11_1, int int_35, Enum13 enum13_1)
 {
     return this.Initialize(gclass1_1, enum11_1, int_35, 8, enum13_1);
 }
Example #11
0
 // Token: 0x06001173 RID: 4467
 // RVA: 0x00010A0B File Offset: 0x0000EC0B
 public GClass1()
 {
     this.enum11_0 = Enum11.const_2;
     this.int_4 = 15;
     this.enum13_0 = Enum13.const_0;
 }