Class

SingleItemPlaylist

SingleItemPlaylist(playlistData, seasonData)

Playlist for modes with a single map (e.g. Shadow Royale).

Constructor

# new SingleItemPlaylist(playlistData, seasonData)

Construct a playlist which contains a single map from playlistData.

Parameters:
Name Type Description
playlistData playlistData

data for this playlist

seasonData seasonData

data for this playlist's parent Season

View Source classes/SingleItemPlaylist.js, line 11

Extends

  • playlist

Members

ScheduledPlaylistItem

# readonly nullable currentMap

The ScheduledPlaylistItem for this playlist if within date bounds, otherwise null.

View Source classes/SingleItemPlaylist.js, line 43

ScheduledPlaylistItem

# readonly nullable nextMap

The ScheduledPlaylistItem for this playlist if before the start time, otherwise null.

View Source classes/SingleItemPlaylist.js, line 57

Array.<ScheduledPlaylistItem>

# rotations

Array containing a single ScheduledPlaylistItem. Type matches other classes which extend Playlist so that Array methods can be used predictably.

View Source classes/SingleItemPlaylist.js, line 28

Methods

# getMapByDate(dateopt) → (nullable) {ScheduledPlaylistItem}

The ScheduledPlaylistItem for this playlist if within date bounds, otherwise null.

Parameters:
Name Type Attributes Default Description
date parseableDate <optional>
new Date()

the date to target

View Source classes/SingleItemPlaylist.js, line 69

active map or null