예제 #1
0
 public void AddSong(SongDefinition song)
 {
     if (this.songs == null)
     {
         this.songs = new List <SongDefinition>();
     }
     this.songs.Add(song);
 }
예제 #2
0
        public SongDefinition AddSong(TrackId trackId)
        {
            if (this.songs == null)
            {
                this.songs = new List <SongDefinition>();
            }
            SongDefinition songDefinition = new SongDefinition();

            songDefinition.trackDataName = trackId.trackId;
            this.songs.Add(songDefinition);
            return(songDefinition);
        }
예제 #3
0
 public bool RemoveSong(SongDefinition song)
 {
     return(songs.Remove(song));
 }