feat(Structures): basic setup
This commit is contained in:
parent
1e45ebc54c
commit
5d5fd03997
1 changed files with 15 additions and 1 deletions
|
@ -1 +1,15 @@
|
|||
export {};
|
||||
import { Player } from "../Player";
|
||||
import { Track } from "./Track";
|
||||
|
||||
class Playlist {
|
||||
public readonly player: Player;
|
||||
public tracks: Track[];
|
||||
|
||||
constructor(player: Player, tracks: Track[]) {
|
||||
this.player = player;
|
||||
this.tracks = tracks ?? [];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export { Playlist };
|
||||
|
|
Loading…
Reference in a new issue