Vote type delay, code comments.
Added doc comments to server side voting API. There is now a 4 minute delay between creating votes of the same type. Shuffled some code around. Made a StandardVoteType enum instead of string IDs.
This commit is contained in:
18
Content.Shared/Voting/StandardVoteType.cs
Normal file
18
Content.Shared/Voting/StandardVoteType.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace Content.Shared.Voting
|
||||
{
|
||||
/// <summary>
|
||||
/// Standard vote types that players can initiate themselves from the escape menu.
|
||||
/// </summary>
|
||||
public enum StandardVoteType : byte
|
||||
{
|
||||
/// <summary>
|
||||
/// Vote to restart the round.
|
||||
/// </summary>
|
||||
Restart,
|
||||
|
||||
/// <summary>
|
||||
/// Vote to change the game preset for next round.
|
||||
/// </summary>
|
||||
Preset
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user