Files
tbd-station-14/Content.Server/Voting/IVoteHandle.cs
Pieter-Jan Briers 245f276f35 Restart vote improvements, voting localization.
Restart votes now need 80% majority to succeed.
Restart votes now have a 3 minute cooldown on the caller.
Voting stuff has been localized.
2021-02-28 22:11:53 +01:00

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();
}
}