Class: SessionManager

SessionManager

Handles all functions for the active game session.

new SessionManager()

Members

clientRCONClient

Methods

asyncbroadcast(message){Promise.<void>}

Broadcasts a message to all players.

Name Type Description
message string
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
mapId string
Returns:
Type Description
Promise.<void>

asyncsetSectorLayout(sectors){Promise.<void>}

Sets the sector layout.

Name Type Description
sectors Array.<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>