コード例 #1
0
 /**<summary>Reads the RCT1 image directory.</summary>*/
 public void ReadCSG1(BinaryReader reader)
 {
     while (reader.BaseStream.Position < reader.BaseStream.Length)
     {
         ImageEntry entry = new ImageEntry();
         entry.Read(reader);
         entries.Add(entry);
     }
 }
コード例 #2
0
        /**<summary>Reads the image directory.</summary>*/
        public void ReadCSG1(BinaryReader reader)
        {
            //int count = reader.ReadInt32();
            //this.ScanLineLength = reader.ReadInt32();

            //for (int i = 0; i < count; i++) {
            while (reader.BaseStream.Position < reader.BaseStream.Length)
            {
                ImageEntry entry = new ImageEntry();
                entry.Read(reader);
                this.entries.Add(entry);
            }
        }
コード例 #3
0
        //=========== READING ============
        #region Reading

        /**<summary>Reads the image directory.</summary>*/
        public void Read(BinaryReader reader, bool quickLoad = false)
        {
            int count = reader.ReadInt32();

            ScanLineLength = reader.ReadInt32();

            for (int i = 0; i < count; i++)
            {
                ImageEntry entry = new ImageEntry();
                entry.Read(reader);
                if (!quickLoad || i < 168)
                {
                    entries.Add(entry);
                }
            }
        }