コード例 #1
0
 private void GetHeader2Info()
 {
     this._vcms.Seek((long)((ulong)this._headerPointer2), SeekOrigin.Begin);
     this._voiceCollectionHeader2List = new List <VoiceCollectionHeader2>();
     for (uint num = 0U; num < this._arrayEntries; num += 1U)
     {
         VoiceCollectionHeader2 item = default(VoiceCollectionHeader2);
         item.Hash1 = Helpers.ReadUInt(this._vcms);
         this._vcms.Seek(4L, SeekOrigin.Current);
         item.Pointer = (uint)this._vcms.Position + Helpers.ReadUInt(this._vcms);
         this._vcms.Seek(4L, SeekOrigin.Current);
         this._voiceCollectionHeader2List.Add(item);
     }
 }
コード例 #2
0
 private void ReadDataBlocks()
 {
     using (List <VoiceCollectionHeader1> .Enumerator enumerator = this._voiceCollectionHeader1List.GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             VoiceLines.ReadDataBlocksHelper readDataBlocksHelper = new VoiceLines.ReadDataBlocksHelper
             {
                 VoiceCollectionHeader1 = enumerator.Current
             };
             int num = this._voiceCollectionHeader2List.FindIndex(new Predicate <VoiceCollectionHeader2>(readDataBlocksHelper.ReadDataBlocks0));
             VoiceCollectionHeader2 voiceCollectionHeader = default(VoiceCollectionHeader2);
             if (num != -1)
             {
                 voiceCollectionHeader = this._voiceCollectionHeader2List[num];
             }
             this._voiceEntry = default(VoiceEntry);
             this._voiceEntry.Header2Hash1 = voiceCollectionHeader.Hash1;
             this.Loop(voiceCollectionHeader.Pointer);
         }
     }
 }
コード例 #3
0
 internal bool ReadDataBlocks0(VoiceCollectionHeader2 c)
 {
     return(c.Hash1 == this.VoiceCollectionHeader1.Hash1);
 }