Delta-v/Content.Server/Voting/IVoteManager.cs

23 lines
613 B
C#

using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Robust.Server.Player;
#nullable enable
namespace Content.Server.Voting
{
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();
}
}