GetItemsByType() 공개 메소드

Gets all entries of a specific type.
public GetItemsByType ( DBPFTypeID Type ) : byte[]>>.List
Type DBPFTypeID The Type of the entry.
리턴 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));
     }
 }