Add Votekick functionality (#32005)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using Content.Server.Voting.Managers;
|
||||
using Robust.Shared.Player;
|
||||
|
||||
|
||||
namespace Content.Server.Voting
|
||||
{
|
||||
/// <summary>
|
||||
@@ -39,6 +39,21 @@ namespace Content.Server.Voting
|
||||
/// </summary>
|
||||
public List<(string text, object data)> Options { get; set; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// Which sessions may send a vote. Used when only a subset of players should be able to vote. Defaults to all.
|
||||
/// </summary>
|
||||
public VoteManager.VoterEligibility VoterEligibility = VoteManager.VoterEligibility.All;
|
||||
|
||||
/// <summary>
|
||||
/// Whether the vote should send and display the number of votes to the clients. Being an admin defaults this option to true for your client.
|
||||
/// </summary>
|
||||
public bool DisplayVotes = true;
|
||||
|
||||
/// <summary>
|
||||
/// Whether the vote should have an entity attached to it, to be used for things like letting ghosts follow it.
|
||||
/// </summary>
|
||||
public NetEntity? TargetEntity = null;
|
||||
|
||||
/// <summary>
|
||||
/// Sets <see cref="InitiatorPlayer"/> and <see cref="InitiatorText"/>
|
||||
/// by setting the latter to the player's name.
|
||||
|
||||
Reference in New Issue
Block a user