package draggablemp3player;

import javafx.scene.media.*;

public class Playlist {
    public-init var songs:Song[];

    public var currentPlayingSong:Song;

    public var currentSong:Integer = 0 on replace {
        if (currentSong < 0) {
            currentSong = sizeof songs-1;
        }
        if (currentSong >= sizeof songs) {
            currentSong = 0;
        }
    }
}