GameMapPrototype.MapSelection.cs 906 B

1234567891011121314151617181920212223242526272829
  1. namespace Content.Server.Maps;
  2. public sealed partial class GameMapPrototype
  3. {
  4. /// <summary>
  5. /// Controls if the map can be used as a fallback if no maps are eligible.
  6. /// </summary>
  7. [DataField("fallback")]
  8. public bool Fallback { get; private set; }
  9. /// <summary>
  10. /// Minimum players for the given map.
  11. /// </summary>
  12. [DataField("minPlayers", required: true)]
  13. public uint MinPlayers { get; private set; }
  14. /// <summary>
  15. /// Maximum players for the given map.
  16. /// </summary>
  17. [DataField("maxPlayers")]
  18. public uint MaxPlayers { get; private set; } = uint.MaxValue;
  19. [DataField("conditions")] private List<GameMapCondition> _conditions = new();
  20. /// <summary>
  21. /// The game map conditions that must be fulfilled for this map to be selectable.
  22. /// </summary>
  23. public IReadOnlyList<GameMapCondition> Conditions => _conditions;
  24. }