Exemplo n.º 1
0
 private void ReadOutputsSection2(BinaryReader reader)
 {
     outputs2Header = MapBlockHeader.Read(reader);
     outputs2Count  = reader.ReadInt32();
     for (int n = 0; n < outputs2Count; n++)
     {
         reader.ReadBytes(24); // data
     }
 }
Exemplo n.º 2
0
 private void ReadOutputsSection3(BinaryReader reader)
 {
     outputs3Header = MapBlockHeader.Read(reader);
     if (outputs3Header.Length > 0)
     {
         outputs3Count = reader.ReadInt32();
         for (int n = 0; n < outputs3Count; n++)
         {
             reader.ReadBytes(36); // data
         }
     }
 }
Exemplo n.º 3
0
        private void ReadMapName(BinaryReader reader)
        {
            mapNameHeader = MapBlockHeader.Read(reader);
            char[] name = reader.ReadChars(34);
            int    nameLength;

            for (nameLength = 0; nameLength < name.Length; nameLength++)
            {
                if (name[nameLength] == 0)
                {
                    break;
                }
            }
            mapName = new string(name, 0, nameLength);
            reader.ReadBytes(98); // unknown
        }
Exemplo n.º 4
0
 private void ReadMapHeader(BinaryReader reader)
 {
     fileHeader1   = MapBlockHeader.Read(reader);
     fileHeader2   = MapBlockHeader.Read(reader);
     mapEntryCount = reader.ReadInt32();
 }