new SessionManager()
Members
-
clientRCONClient
-
Methods
-
asyncbroadcast(message){Promise.<void>}
-
Broadcasts a message to all players.
Name Type Description messagestring Returns:
Type Description Promise.<void> -
asyncfetch(){Promise.<Session>}
-
Fetches the current session state.
Returns:
Type Description Promise.<Session> -
asyncsetMap(mapId){Promise.<void>}
-
Sets the map for the session.
Name Type Description mapIdstring Returns:
Type Description Promise.<void> -
asyncsetSectorLayout(sectors){Promise.<void>}
-
Sets the sector layout.
Name Type Description sectorsArray.<string> The name sof the capture points. From left to right for horizontal maps and top to bottom for vertical maps.
Returns:
Type Description Promise.<void>