| 12345678910111213141516171819202122232425262728293031323334 |
- using System.Linq;
- using System.Threading.Tasks;
- using Content.Server.Database;
- using Content.Shared.Database;
- using Robust.Shared.Network;
- namespace Content.Server.Connection.Whitelist.Conditions;
- /// <summary>
- /// Condition that matches if the player has notes within a certain date range.
- /// </summary>
- public sealed partial class ConditionNotesDateRange : WhitelistCondition
- {
- [DataField]
- public bool IncludeExpired = false;
- [DataField]
- public NoteSeverity MinimumSeverity = NoteSeverity.Minor;
- /// <summary>
- /// The minimum number of notes required.
- /// </summary>
- [DataField]
- public int MinimumNotes = 1;
- /// <summary>
- /// Range in days to check for notes.
- /// </summary>
- [DataField]
- public int Range = int.MaxValue;
- [DataField]
- public bool IncludeSecret = false;
- }
|