Exemplo n.º 1
0
        /// <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));
            }
        }
Exemplo n.º 2
0
        /// <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++)
            {
                var track  = new Track(tracks[i].Value);
                var realid = tracks[i].Key;
                TracksById.Add(realid, track);
                TracksByBackupId[track.TrackID] = track;
            }
        }