-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathIMcsMapCycleExtendControllerApi.cs
More file actions
54 lines (45 loc) · 1.94 KB
/
Copy pathIMcsMapCycleExtendControllerApi.cs
File metadata and controls
54 lines (45 loc) · 1.94 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
using CounterStrikeSharp.API.Core;
namespace MapChooserSharp.API.MapCycleController;
/// <summary>
/// Map extending management
/// </summary>
public interface IMcsMapCycleExtendControllerApi
{
/// <summary>
/// Describes current status of !ext
/// </summary>
public ExtStatus ExtCommandStatus { get; }
/// <summary>
/// How many user exts remaining in this map
/// </summary>
public int ExtUsageRemaining { get; }
/// <summary>
/// Set remainig ext count
/// </summary>
/// <param name="userExtsRemaining">exts count to set</param>
public void SetExtUsageRemaining(int userExtsRemaining);
/// <summary>
/// Extends a current map by specified time.
/// </summary>
/// <param name="extendTime">extends a round, timelimit or roundtime. It depends on a map type</param>
/// <returns>McsMapCycleExtendResult.Extended if map is extended successfully</returns>
public McsMapCycleExtendResult ExtendCurrentMap(int extendTime);
/// <summary>
/// Cast ext vote
/// </summary>
/// <param name="player">Player who voted</param>
/// <returns>PlayerExtResult.Success if voted successfully</returns>
public PlayerExtResult CastPlayerExtVote(CCSPlayerController player);
/// <summary>
/// Enables player !ext command
/// </summary>
/// <param name="player">Player who enabled. it will treated as CONSOLE when null</param>
/// <param name="silently">if true, change is not notified to players.</param>
public void EnablePlayerExtCommand(CCSPlayerController? player = null, bool silently = false);
/// <summary>
/// Disables player !ext command
/// </summary>
/// <param name="player">Player who disabled. it will treated as CONSOLE when null</param>
/// <param name="silently">if true, change is not notified to players.</param>
public void DisablePlayerExtCommand(CCSPlayerController? player = null, bool silently = false);
}