Exemplo n.º 1
0
 // Token: 0x0600064F RID: 1615 RVA: 0x000059B7 File Offset: 0x00003BB7
 private void method_6(byte[] byte_3, int int_1)
 {
     Class129.smethod_0(this.uint_3, byte_3, int_1);
     Class129.smethod_0(this.uint_4, byte_3, int_1 + 4);
     Class129.smethod_0(this.uint_5, byte_3, int_1 + 8);
     Class129.smethod_0(this.uint_6, byte_3, int_1 + 12);
 }
Exemplo n.º 2
0
        private void method_1()
        {
            int index = -1;
            int num2  = -1;

            foreach (Class139 class2 in this.list_2)
            {
                num2++;
                if (class2.string_0 == "Print_Titles")
                {
                    Class129.smethod_5(class2.worksheet_0, class2.range_0.string_1);
                    index = num2;
                }
                else
                {
                    Worksheet worksheet = class2.worksheet_0 ?? this[0];
                    class2.range_0.method_9(worksheet[0, 0]);
                    if (class2.string_0 == "_FilterDatabase")
                    {
                        worksheet.bool_0 = true;
                    }
                    if (class2.string_0 == "Print_Area")
                    {
                        worksheet.bool_1 = true;
                    }
                }
            }
            if (index != -1)
            {
                this.list_2.RemoveAt(index);
            }
        }
Exemplo n.º 3
0
 // Token: 0x0600064E RID: 1614 RVA: 0x0000597A File Offset: 0x00003B7A
 private void method_5(byte[] byte_3, int int_1)
 {
     this.uint_3 = Class129.smethod_1(byte_3, int_1);
     this.uint_4 = Class129.smethod_1(byte_3, int_1 + 4);
     this.uint_5 = Class129.smethod_1(byte_3, int_1 + 8);
     this.uint_6 = Class129.smethod_1(byte_3, int_1 + 12);
 }
Exemplo n.º 4
0
 private static void smethod_5()
 {
     while (queue_0.Count > 0)
     {
         if (World.jlMsg == 1)
         {
             Form1.WriteLine(0, "ProcessChangeQueue");
         }
         Class129   class1 = (Class129)queue_0.Dequeue();
         TimerClass item   = class1.class125_0;
         int        index  = class1.int_0;
         if (item.list_0 != null)
         {
             item.list_0.Remove(item);
         }
         if (class1.bool_0)
         {
             item.dateTime_0 = DateTime.Now + item.timeSpan_0;
             item.int_0      = 0;
         }
         if (index >= 0)
         {
             item.list_0 = list_0[index];
             item.list_0.Add(item);
         }
         else
         {
             item.list_0 = null;
         }
         class1.method_0();
     }
 }
Exemplo n.º 5
0
 private Class1108(Class764 A_0, SubDocumentType A_1)
 {
     this.class985_0        = new Class985();
     this.class132_0        = new Class132();
     this.class136_0        = new Class136();
     this.class135_0        = new Class135();
     this.class133_0        = new Class133();
     this.class131_0        = new Class131();
     this.class134_0        = new Class134();
     this.class130_0        = new Class130();
     this.class130_1        = new Class130();
     this.class129_0        = new Class129();
     this.stack_0           = new Stack();
     this.class764_0        = A_0;
     this.subDocumentType_0 = A_1;
     this.class263_0        = new Class263(this.class764_0.method_43());
 }
Exemplo n.º 6
0
    // Token: 0x06000647 RID: 1607 RVA: 0x00037260 File Offset: 0x00035460
    private uint[,] method_4(byte[] byte_3, bool bool_1)
    {
        int num = byte_3.Length / 4;

        if (num != 4 && num != 6 && num != 8)
        {
            throw new ArgumentException("Key length not 128/192/256 bits.");
        }
        this.int_0    = num + 6;
        uint[,] array = new uint[this.int_0 + 1, 4];
        int num2 = 0;
        int i    = 0;

        while (i < byte_3.Length)
        {
            array[num2 >> 2, num2 & 3] = Class129.smethod_1(byte_3, i);
            i += 4;
            num2++;
        }
        int num3 = this.int_0 + 1 << 2;

        for (int j = num; j < num3; j++)
        {
            uint num4 = array[j - 1 >> 2, j - 1 & 3];
            if (j % num == 0)
            {
                num4 = (this.method_3(this.method_0(num4, 8)) ^ (uint)Class151.byte_2[j / num - 1]);
            }
            else if (num > 6 && j % num == 4)
            {
                num4 = this.method_3(num4);
            }
            array[j >> 2, j & 3] = (array[j - num >> 2, j - num & 3] ^ num4);
        }
        if (!bool_1)
        {
            for (int k = 1; k < this.int_0; k++)
            {
                for (int l = 0; l < 4; l++)
                {
                    array[k, l] = this.method_2(array[k, l]);
                }
            }
        }
        return(array);
    }
Exemplo n.º 7
0
 internal void method_9(Cell cell_2)
 {
     if (!this.string_1.IsNullOrEmpty())
     {
         Match match;
         Aisino.Framework.Plugin.Core.ExcelXml.Range range;
         Enum16 enum2 = Class129.smethod_2(this.string_1, out match);
         if (cell_2 == null)
         {
             throw new ArgumentNullException("cell");
         }
         if (Class129.smethod_4(cell_2, match, out range, enum2 == ((Enum16)3)))
         {
             this.string_1 = "";
             this.cell_0   = range.cell_0;
             this.cell_1   = range.cell_1;
         }
     }
 }
        private void method_13(JsonProperty jsonProperty_0, MemberInfo memberInfo_0, bool bool_4)
        {
            Class129   class2   = new Class129();
            MemberInfo property = memberInfo_0.DeclaringType.GetProperty(memberInfo_0.Name + "Specified");

            if (property == null)
            {
                property = memberInfo_0.DeclaringType.GetField(memberInfo_0.Name + "Specified");
            }
            if ((property != null) && (Class194.smethod_20(property) == typeof(bool)))
            {
                class2.func_0 = Class139.Class166_0.method_0 <object>(property);
                jsonProperty_0.GetIsSpecified = new Predicate <object>(class2.method_0);
                if (Class194.smethod_26(property, bool_4, false))
                {
                    jsonProperty_0.SetIsSpecified = Class139.Class166_0.method_1 <object>(property);
                }
            }
        }
Exemplo n.º 9
0
        private void method_11(XmlReader xmlReader_0, Row row_0)
        {
            bool     isEmptyElement = xmlReader_0.IsEmptyElement;
            int      count          = row_0.list_0.Count;
            int      num2           = 0;
            int      num3           = 0;
            XmlStyle style          = null;
            string   str            = "";
            string   str2           = "";

            foreach (XmlReaderAttributeItem item in xmlReader_0.GetAttributes())
            {
                if ((item.LocalName == "Index") && item.HasValue)
                {
                    item.Value.ParseToInt <int>(out count);
                    count--;
                }
                if ((item.LocalName == "StyleID") && item.HasValue)
                {
                    style = this.excelXmlWorkbook_0.method_6(item.Value);
                }
                if ((item.LocalName == "HRef") && item.HasValue)
                {
                    str2 = item.Value;
                }
                if ((item.LocalName == "Formula") && item.HasValue)
                {
                    str = item.Value;
                }
                if ((item.LocalName == "MergeAcross") && item.HasValue)
                {
                    item.Value.ParseToInt <int>(out num3);
                }
                if ((item.LocalName == "MergeDown") && item.HasValue)
                {
                    item.Value.ParseToInt <int>(out num2);
                }
            }
            Cell cell = this.method_12(count, row_0.int_0);

            if (style != null)
            {
                cell.Style = style;
            }
            if (!str2.IsNullOrEmpty())
            {
                cell.HRef = str2;
            }
            if (!str.IsNullOrEmpty())
            {
                Class129.smethod_3(cell, str);
            }
            else if (!isEmptyElement)
            {
                if ((num2 > 0) || (num3 > 0))
                {
                    cell.bool_0 = true;
                    Aisino.Framework.Plugin.Core.ExcelXml.Range range = new Aisino.Framework.Plugin.Core.ExcelXml.Range(cell, this.method_12(count + num3, row_0.int_0 + num2));
                    this.list_2.Add(range);
                    cell.ColumnSpan = range.ColumnCount;
                    cell.RowSpan    = range.RowCount;
                }
                while (xmlReader_0.Read())
                {
                    if ((xmlReader_0.Name == "Cell") && (xmlReader_0.NodeType == XmlNodeType.EndElement))
                    {
                        break;
                    }
                    if (xmlReader_0.NodeType == XmlNodeType.Element)
                    {
                        if (xmlReader_0.Name == "Data")
                        {
                            smethod_2(xmlReader_0, cell);
                        }
                        else if (xmlReader_0.Name == "Comment")
                        {
                            smethod_3(xmlReader_0, cell);
                        }
                    }
                }
            }
        }
Exemplo n.º 10
0
        // Token: 0x060028CF RID: 10447 RVA: 0x00099ED0 File Offset: 0x000980D0
        private bool method_6(EventHandler endOfStream = null)
        {
            EventHandler <EventArgs0>  eventHandler  = null;
            EventHandler <EventArgs31> eventHandler2 = null;
            EventHandler <EventArgs37> eventHandler3 = null;
            EventHandler eventHandler4 = null;
            EventHandler <EventArgs1> eventHandler5 = null;
            EventHandler eventHandler6 = null;
            EventHandler <EventArgs30> eventHandler7 = null;
            string logFile;

            if (Class142.smethod_10(this.ToonTownProcess.Process, out logFile))
            {
                this.LogMonitor = new Class129(logFile);
                Class129 logMonitor = this.LogMonitor;
                if (eventHandler == null)
                {
                    eventHandler = new EventHandler <EventArgs0>(this.method_9);
                }
                logMonitor.FileStateRead += eventHandler;
                Class129 logMonitor2 = this.LogMonitor;
                if (eventHandler2 == null)
                {
                    eventHandler2 = new EventHandler <EventArgs31>(this.method_10);
                }
                logMonitor2.InvasionStateChanged += eventHandler2;
                Class129 logMonitor3 = this.LogMonitor;
                if (eventHandler3 == null)
                {
                    eventHandler3 = new EventHandler <EventArgs37>(this.method_11);
                }
                logMonitor3.DistrictChanged += eventHandler3;
                Class129 logMonitor4 = this.LogMonitor;
                if (eventHandler4 == null)
                {
                    eventHandler4 = new EventHandler(this.method_12);
                }
                logMonitor4.LoggedOut += eventHandler4;
                Class129 logMonitor5 = this.LogMonitor;
                if (eventHandler5 == null)
                {
                    eventHandler5 = new EventHandler <EventArgs1>(this.method_13);
                }
                logMonitor5.AvailableDistrictsChanged += eventHandler5;
                Class129 logMonitor6 = this.LogMonitor;
                if (eventHandler6 == null)
                {
                    eventHandler6 = new EventHandler(this.method_14);
                }
                logMonitor6.NoInvasionDetected += eventHandler6;
                Class129 logMonitor7 = this.LogMonitor;
                if (eventHandler7 == null)
                {
                    eventHandler7 = new EventHandler <EventArgs30>(this.method_15);
                }
                logMonitor7.PlaygroundChanged += eventHandler7;
                if (endOfStream != null)
                {
                    this.LogMonitor.ReadingPaused += endOfStream;
                }
                this.LogMonitor.method_4();
                return(true);
            }
            return(false);
        }
 public abstract void Visit(Class129 c);
 public override void Visit(Class129 c) { }
Exemplo n.º 13
0
 public static void smethod_1(TimerClass class125_0, int int_0, bool bool_0)
 {
     queue_0.Enqueue(Class129.smethod_0(class125_0, int_0, bool_0));
 }