using System.Text.Json.Serialization;
using System.Threading.Tasks;
using JetBrains.Annotations;
using Robust.Shared.Network;
namespace Content.Server.Connection.Whitelist;
///
/// This class is used to determine if a player should be allowed to join the server.
/// It is used in
///
[ImplicitDataDefinitionForInheritors]
[MeansImplicitUse]
public abstract partial class WhitelistCondition
{
///
/// What action should be taken if this condition is met?
/// Defaults to .
///
[DataField]
public ConditionAction Action { get; set; } = ConditionAction.Next;
}
///
/// Determines what action should be taken if a condition is met.
///
public enum ConditionAction
{
///
/// The player is allowed to join, and the next conditions will be skipped.
///
Allow,
///
/// The player is denied to join, and the next conditions will be skipped.
///
Deny,
///
/// The next condition should be checked.
///
Next
}