mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-10 10:51:14 +03:00
30 lines
750 B
C#
30 lines
750 B
C#
using Content.Shared.Database;
|
|
|
|
namespace Content.Server.Connection.Whitelist.Conditions;
|
|
|
|
/// <summary>
|
|
/// Condition that matches if the player has notes within a certain playtime range.
|
|
/// </summary>
|
|
public sealed partial class ConditionNotesPlaytimeRange : 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>
|
|
/// The range in minutes to check for notes.
|
|
/// </summary>
|
|
[DataField]
|
|
public int Range = int.MaxValue;
|
|
|
|
[DataField]
|
|
public bool IncludeSecret = false;
|
|
}
|