namespace Content.Shared.Database;
///
/// Types of bans that can be stored in the database.
///
public enum BanType : byte
{
///
/// A ban from the entire server. If a player matches the ban info, they will be refused connection.
///
Server,
///
/// A ban from playing one or more roles.
///
Role,
}
///
/// A single role for a database role ban.
///
/// The type of role being banned, e.g. Job.
///
/// The ID of the role being banned. This is likely a prototype ID based on .
///
[Serializable]
public record struct BanRoleDef(string RoleType, string RoleId)
{
public override string ToString()
{
return $"{RoleType}:{RoleId}";
}
}