-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathIMcsMapCycleControllerApi.cs
More file actions
69 lines (57 loc) · 2.04 KB
/
Copy pathIMcsMapCycleControllerApi.cs
File metadata and controls
69 lines (57 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
using MapChooserSharp.API.MapConfig;
namespace MapChooserSharp.API.MapCycleController;
/// <summary>
/// McsMapCycleController API, You can manipulate the map cycle like Change to next map, Set next map, with this API.
/// </summary>
public interface IMcsMapCycleControllerApi
{
/// <summary>
/// Next map of IMapConfig.
/// null until MapChanged -> Vote finished and next map confirmed.
/// </summary>
public IMapConfig? NextMap { get; }
/// <summary>
/// Current map of IMapConfig.
/// Shouldn't be null, but sometimes can be nullable.
/// </summary>
public IMapConfig? CurrentMap { get; }
/// <summary>
/// True if next map confirmed
/// </summary>
public bool IsNextMapConfirmed { get; }
/// <summary>
/// If true, map will be transit to next map when round end.
/// </summary>
public bool ChangeMapOnNextRoundEnd { get; set; }
/// <summary>
/// Extend count of current map
/// </summary>
public int ExtendCount { get; }
/// <summary>
/// Returns remaining extend count
/// </summary>
public int ExtendsLeft { get; }
/// <summary>
/// Set next map to specified map config
/// </summary>
/// <param name="mapConfig">Map Config</param>
/// <returns>True if map is valid and next map successfully changed, otherwise false</returns>
public bool SetNextMap(IMapConfig mapConfig);
/// <summary>
/// Set next map to specified map name.
/// </summary>
/// <param name="mapName">Map Name</param>
/// <returns>True if map is found by name and next map successfully changed, otherwise false</returns>
public bool SetNextMap(string mapName);
/// <summary>
/// Removes next map
/// </summary>
/// <returns></returns>
public bool RemoveNextMap();
/// <summary>
/// Change to next map <br/>
/// If next map is null, this method will fail and do nothing.
/// </summary>
/// <param name="seconds">Seconds to change map</param>
public void ChangeToNextMap(float seconds);
}