Class: MapManager

MapManager

Handles server map rotations, sequences, and weather configuration.

new MapManager()

Members

clientRCONClient

Methods

asyncaddMapToRotation(mapId, index){Promise.<void>}

Adds a map to the rotation at a given index.

Name Type Description
mapId string
index number optional
Returns:
Type Description
Promise.<void>

asyncaddMapToSequence(mapId, index){Promise.<void>}

Adds a map to the sequence at a given index.

Name Type Description
mapId string
index number optional
Returns:
Type Description
Promise.<void>

asyncfetchMapRotation(){Promise.<Array.<MapRotationEntry>>}

Fetches the maps in rotation.

Returns:
Type Description
Promise.<Array.<MapRotationEntry>>

asyncfetchMapSequence(){Promise.<Array.<MapSequenceEntry>>}

Fetches the maps in the sequence.

Returns:
Type Description
Promise.<Array.<MapSequenceEntry>>

asyncmoveMapInSequence(currentIndex, newIndex){Promise.<void>}

Moves a map in the sequence to a new index.

Name Type Description
currentIndex number
newIndex number
Returns:
Type Description
Promise.<void>

asyncremoveMapFromRotation(index){Promise.<void>}

Removes a map from the rotation at a given index.

Name Type Description
index number
Returns:
Type Description
Promise.<void>

asyncremoveMapFromSequence(index){Promise.<void>}

Removes a map from the sequence at a given index.

Name Type Description
index number
Returns:
Type Description
Promise.<void>

asyncsetDynamicWeather(mapId, enable){Promise.<void>}

Enables/Disables dynamic weather for a map.

Name Type Description
mapId string
enable boolean
Returns:
Type Description
Promise.<void>

asyncsetSequenceShuffle(enable){Promise.<void>}

Enable/disable map shuffling.

Name Type Description
enable boolean
Returns:
Type Description
Promise.<void>