19 lines
447 B
C#
19 lines
447 B
C#
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; }
|
|
|
|
event VoteFinishedEventHandler OnFinished;
|
|
bool IsValidOption(int optionId);
|
|
void CastVote(IPlayerSession session, int? optionId);
|
|
void Cancel();
|
|
}
|
|
}
|