Files
tbd-station-14/Content.Server/Voting/Managers/IVoteManager.cs
2021-06-09 22:19:39 +02:00

23 lines
622 B
C#

using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Robust.Server.Player;
#nullable enable
namespace Content.Server.Voting.Managers
{
public interface IVoteManager
{
IEnumerable<IVoteHandle> ActiveVotes { get; }
bool TryGetVote(int voteId, [NotNullWhen(true)] out IVoteHandle? vote);
bool CanCallVote(IPlayerSession initiator);
void CreateRestartVote(IPlayerSession? initiator);
void CreatePresetVote(IPlayerSession? initiator);
IVoteHandle CreateVote(VoteOptions options);
void Initialize();
void Update();
}
}