Files
wwdpublic/Content.Shared/Voting/VotingEvents.cs
SlamBamActionman f016ebd367 Add Votekick functionality (#32005)
(cherry picked from commit eeadc75b0a2a72fa1225610fee853eb0004456bf)
2025-09-20 20:33:33 +03:00

31 lines
765 B
C#

using Robust.Shared.Network;
using Robust.Shared.Serialization;
namespace Content.Shared.Voting;
[Serializable, NetSerializable]
public sealed class VotePlayerListRequestEvent : EntityEventArgs
{
}
[Serializable, NetSerializable]
public sealed class VotePlayerListResponseEvent : EntityEventArgs
{
public VotePlayerListResponseEvent((NetUserId, NetEntity, string)[] players, bool denied)
{
Players = players;
Denied = denied;
}
/// <summary>
/// The players available to have a votekick started for them.
/// </summary>
public (NetUserId, NetEntity, string)[] Players { get; }
/// <summary>
/// Whether the server will allow the user to start a votekick or not.
/// </summary>
public bool Denied;
}