Esempio n. 1
0
 private void AddPath(STFReader stf, TrackPath path)
 {
     try
     {
         TrackPaths.Add(path.DynamicSectionIndex, path);
     }
     catch (Exception e)
     {
         System.Console.WriteLine("Warning: in route tsection.dat " + e.Message);
     }
 }
Esempio n. 2
0
        internal override void ReadData(AwesomeReader ar)
        {
            TrackPaths.Clear();

            InstrumentType          = ar.ReadUInt64();
            Difficulty              = ar.ReadUInt64();
            ar.BaseStream.Position += 8; // Should be zero'd

            // Reads tuning info
            Tuning = InstrumentTuning.ReadData(ar);

            // Reads track paths
            int count = ar.ReadInt32();

            ar.BaseStream.Position += 4; // Offset - Should be 4

            for (int i = 0; i < count; i++)
            {
                TrackPaths.Add(ar.ReadUInt64());
            }
        }