# new SplitPlaylist(playlistData, seasonData)
Create a split playlist from playlistData.
Parameters:
Name | Type | Description |
---|---|---|
playlistData |
playlistData
|
data for this playlist |
seasonData |
seasonData
|
data for the parent season |
Extends
Members
Date
# baseTime Optional
The time to use as base for calculating rotation times. This is needed for some playlists as they appear to start at odd times that don't align with the season start, mode start, or even each other.
- Overrides:
ScheduledPlaylistItem
# readonly nullable currentMap
Gets the current map rotation, or null if none available (e.g. outside of date boundaries).
ScheduledPlaylistItem
# readonly nullable nextMap
Gets the next map rotation, the first map rotation if called before the playlist startTime, or null if during the last rotation or after the playlist endTime.
Array.<ScheduledPlaylistItem>
# rotations
Gets the map rotations available in this playlist. As the playlist will only ever have 2 maps, the values are hard-coded and can be accessed predictably using Array indexes.
boolean
# takeover Optional
Whether this playlist is a takeover-style limited time mode (i.e. that it replaces a 'regular' mode for its duration).
- Overrides:
Methods
# getMapByDate(dateopt) → (nullable) {ScheduledPlaylistItem}
Get the map rotation for a given date, or the current date if none provided, or null if outside of date boundaries.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
date |
parseableDate
|
<optional> |
new Date() | the date to query |
active map or null