Interface IGameMapManager
Manages which station map will be used for the next round.
Namespace: Content.Server.Maps
Assembly: Content.Server.dll
Syntax
public interface IGameMapManager
Methods
| Improve this Doc View SourceAllMaps()
Returns all maps.
Declaration
IEnumerable<GameMapPrototype> AllMaps()
Returns
Type | Description |
---|---|
IEnumerable<GameMapPrototype> | enumerator of map prototypes |
AllVotableMaps()
Returns all maps that can be voted for.
Declaration
IEnumerable<GameMapPrototype> AllVotableMaps()
Returns
Type | Description |
---|---|
IEnumerable<GameMapPrototype> | enumerator of map prototypes |
CheckMapExists(String)
Checks if the given map exists
Declaration
bool CheckMapExists(string gameMap)
Parameters
Type | Name | Description |
---|---|---|
System.String | gameMap | name of the map |
Returns
Type | Description |
---|---|
System.Boolean | existence |
ClearSelectedMap()
Clears the selected map, if any
Declaration
void ClearSelectedMap()
CurrentlyEligibleMaps()
Returns all maps eligible to be played right now.
Declaration
IEnumerable<GameMapPrototype> CurrentlyEligibleMaps()
Returns
Type | Description |
---|---|
IEnumerable<GameMapPrototype> | enumerator of map prototypes |
GetSelectedMap()
Gets the currently selected map
Declaration
GameMapPrototype GetSelectedMap()
Returns
Type | Description |
---|---|
GameMapPrototype | selected map |
Initialize()
Declaration
void Initialize()
SelectMap(String)
Select the given map regardless of eligibility
Declaration
void SelectMap(string gameMap)
Parameters
Type | Name | Description |
---|---|---|
System.String | gameMap | map prototype |
SelectMapByConfigRules()
Selects the map by following rules set in the config
Declaration
void SelectMapByConfigRules()
SelectMapFromRotationQueue(Boolean)
Selects the map at the front of the rotation queue
Declaration
void SelectMapFromRotationQueue(bool markAsPlayed = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | markAsPlayed |
SelectMapRandom()
Selects a random map eligible map
Declaration
void SelectMapRandom()
TrySelectMapIfEligible(String)
Attempts to select the given map, checking eligibility criteria
Declaration
bool TrySelectMapIfEligible(string gameMap)
Parameters
Type | Name | Description |
---|---|---|
System.String | gameMap | map prototype |
Returns
Type | Description |
---|---|
System.Boolean | success or failure |