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.
19 lines
436 B
C#
19 lines
436 B
C#
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
|
|
}
|
|
}
|