Restart votes now need 80% majority to succeed. Restart votes now have a 3 minute cooldown on the caller. Voting stuff has been localized.
22 lines
547 B
C#
22 lines
547 B
C#
using System.Collections.Generic;
|
|
using Robust.Server.Player;
|
|
|
|
namespace Content.Server.Voting
|
|
{
|
|
public interface IVoteHandle
|
|
{
|
|
int Id { get; }
|
|
string Title { get; }
|
|
string InitiatorText { get; }
|
|
bool Finished { get; }
|
|
bool Cancelled { get; }
|
|
|
|
IReadOnlyDictionary<object, int> VotesPerOption { get; }
|
|
|
|
event VoteFinishedEventHandler OnFinished;
|
|
bool IsValidOption(int optionId);
|
|
void CastVote(IPlayerSession session, int? optionId);
|
|
void Cancel();
|
|
}
|
|
}
|