ConditionPlayerCount.cs 441 B

12345678910111213141516
  1. using System.Threading.Tasks;
  2. using Robust.Server.Player;
  3. using Robust.Shared.Network;
  4. namespace Content.Server.Connection.Whitelist.Conditions;
  5. /// <summary>
  6. /// Condition that matches if the player count is within a certain range.
  7. /// </summary>
  8. public sealed partial class ConditionPlayerCount : WhitelistCondition
  9. {
  10. [DataField]
  11. public int MinimumPlayers = 0;
  12. [DataField]
  13. public int MaximumPlayers = int.MaxValue;
  14. }