new MapManager()
Members
-
clientRCONClient
-
Methods
-
asyncaddMapToRotation(mapId, index){Promise.<void>}
-
Adds a map to the rotation at a given index.
Name Type Description mapIdstring indexnumber optional Returns:
Type Description Promise.<void> -
asyncaddMapToSequence(mapId, index){Promise.<void>}
-
Adds a map to the sequence at a given index.
Name Type Description mapIdstring indexnumber 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 currentIndexnumber newIndexnumber Returns:
Type Description Promise.<void> -
asyncremoveMapFromRotation(index){Promise.<void>}
-
Removes a map from the rotation at a given index.
Name Type Description indexnumber Returns:
Type Description Promise.<void> -
asyncremoveMapFromSequence(index){Promise.<void>}
-
Removes a map from the sequence at a given index.
Name Type Description indexnumber Returns:
Type Description Promise.<void> -
asyncsetDynamicWeather(mapId, enable){Promise.<void>}
-
Enables/Disables dynamic weather for a map.
Name Type Description mapIdstring enableboolean Returns:
Type Description Promise.<void> -
asyncsetSequenceShuffle(enable){Promise.<void>}
-
Enable/disable map shuffling.
Name Type Description enableboolean Returns:
Type Description Promise.<void>