예제 #1
0
 public void read(EndianBinaryReader r)
 {
     Difficulty               = r.ReadInt32();
     Anchors                  = new AnchorSection(); Anchors.read(r);
     AnchorExtensions         = new AnchorExtensionSection(); AnchorExtensions.read(r);
     Fingerprints1            = new FingerprintSection(); Fingerprints1.read(r);
     Fingerprints2            = new FingerprintSection(); Fingerprints2.read(r);
     Notes                    = new NotesSection(); Notes.read(r);
     PhraseCount              = r.ReadInt32();
     AverageNotesPerIteration = new float[PhraseCount]; for (int i = 0; i < PhraseCount; i++)
     {
         AverageNotesPerIteration[i] = r.ReadSingle();
     }
     PhraseIterationCount1 = r.ReadInt32();
     NotesInIteration1     = new Int32[PhraseIterationCount1]; for (int i = 0; i < PhraseIterationCount1; i++)
     {
         NotesInIteration1[i] = r.ReadInt32();
     }
     PhraseIterationCount2 = r.ReadInt32();
     NotesInIteration2     = new Int32[PhraseIterationCount2]; for (int i = 0; i < PhraseIterationCount2; i++)
     {
         NotesInIteration2[i] = r.ReadInt32();
     }
 }
 public void read(EndianBinaryReader r)
 {
     Difficulty = r.ReadInt32();
     Anchors = new AnchorSection(); Anchors.read(r);
     AnchorExtensions = new AnchorExtensionSection(); AnchorExtensions.read(r);
     Fingerprints1 = new FingerprintSection(); Fingerprints1.read(r);
     Fingerprints2 = new FingerprintSection(); Fingerprints2.read(r);
     Notes = new NotesSection(); Notes.read(r);
     PhraseCount = r.ReadInt32();
     AverageNotesPerIteration = new float[PhraseCount]; for (int i = 0; i < PhraseCount; i++) AverageNotesPerIteration[i] = r.ReadSingle();
     PhraseIterationCount1 = r.ReadInt32();
     NotesInIteration1 = new Int32[PhraseIterationCount1]; for (int i = 0; i < PhraseIterationCount1; i++) NotesInIteration1[i] = r.ReadInt32();
     PhraseIterationCount2 = r.ReadInt32();
     NotesInIteration2 = new Int32[PhraseIterationCount2]; for (int i = 0; i < PhraseIterationCount2; i++) NotesInIteration2[i] = r.ReadInt32();
 }