Table of Contents

Class MapScheduler

Namespace
Uncreated.Warfare.Maps
Assembly
Uncreated.Warfare.dll
public class MapScheduler
Inheritance
MapScheduler
Inherited Members

Constructors

MapScheduler(IConfiguration, ILogger<MapScheduler>)

public MapScheduler(IConfiguration systemConfiguration, ILogger<MapScheduler> logger)

Parameters

systemConfiguration IConfiguration
logger ILogger<MapScheduler>

Properties

Current

The index of the current map in Uncreated.Warfare.Maps.MapScheduler.MapRotation. Lines up with the primary key in the season info database.

public int Current { get; }

Property Value

int

MapCount

Number of maps in rotation.

public static int MapCount { get; }

Property Value

int

Methods

FindMap(string?)

Find the index of a map from it's name or ID as a string.

public int FindMap(string? mapName)

Parameters

mapName string

Returns

int

GetMapName(int)

Get the name of a map from it's index.

public string GetMapName(int index)

Parameters

index int

Returns

string

Exceptions

ArgumentOutOfRangeException