VotingEvents.cs 765 B

123456789101112131415161718192021222324252627282930
  1. using Robust.Shared.Network;
  2. using Robust.Shared.Serialization;
  3. namespace Content.Shared.Voting;
  4. [Serializable, NetSerializable]
  5. public sealed class VotePlayerListRequestEvent : EntityEventArgs
  6. {
  7. }
  8. [Serializable, NetSerializable]
  9. public sealed class VotePlayerListResponseEvent : EntityEventArgs
  10. {
  11. public VotePlayerListResponseEvent((NetUserId, NetEntity, string)[] players, bool denied)
  12. {
  13. Players = players;
  14. Denied = denied;
  15. }
  16. /// <summary>
  17. /// The players available to have a votekick started for them.
  18. /// </summary>
  19. public (NetUserId, NetEntity, string)[] Players { get; }
  20. /// <summary>
  21. /// Whether the server will allow the user to start a votekick or not.
  22. /// </summary>
  23. public bool Denied;
  24. }