GetItemsByType() public method

Gets all entries of a specific type.
public GetItemsByType ( DBPFTypeID Type ) : byte[]>>.List
Type DBPFTypeID The Type of the entry.
return byte[]>>.List
コード例 #1
0
ファイル: Audio.cs プロジェクト: RHY3756547/FreeSO
 /// <summary>
 /// Gets a track from a DBPF using its InstanceID.
 /// </summary>
 /// <param name="dbpf">The DBPF to search.</param>
 private void AddTracksFrom(DBPFFile dbpf)
 {
     var tracks = dbpf.GetItemsByType(DBPFTypeID.TRK);
     for (var i=0; i<tracks.Count; i++)
     {
         TracksById.Add(tracks[i].Key, new Track(tracks[i].Value));
     }
 }