forked from abnerfs/cs2-rockthevote
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathPluginState.cs
More file actions
22 lines (20 loc) · 766 Bytes
/
Copy pathPluginState.cs
File metadata and controls
22 lines (20 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
namespace cs2_rockthevote
{
public class PluginState : IPluginDependency<Plugin, Config>
{
public bool MapChangeScheduled { get; set; }
public bool EofVoteHappening { get; set; }
public bool ExtendTimeVoteHappening { get; set; }
public bool RtvVoteHappening { get; set; }
public int MapExtensionCount { get; set; } = 0;
public bool DisableCommands => MapChangeScheduled || EofVoteHappening || ExtendTimeVoteHappening || RtvVoteHappening;
public void OnMapStart(string map)
{
MapChangeScheduled = false;
EofVoteHappening = false;
ExtendTimeVoteHappening = false;
RtvVoteHappening = false;
MapExtensionCount = 0;
}
}
}