Better notes and bans (#14228)
Co-authored-by: Chief-Engineer <119664036+Chief-Engineer@users.noreply.github.com>
This commit is contained in:
28
Content.Shared.Database/NoteSeverity.cs
Normal file
28
Content.Shared.Database/NoteSeverity.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
namespace Content.Shared.Database
|
||||
{
|
||||
/// <summary>
|
||||
/// Kinds of severity that a note can have
|
||||
/// </summary>
|
||||
public enum NoteSeverity
|
||||
{
|
||||
/// <summary>
|
||||
/// No severity, displays a checkmark
|
||||
/// </summary>
|
||||
None = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Minor severity, displays a minus
|
||||
/// </summary>
|
||||
Minor = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Medium severity, displays one exclamation mark
|
||||
/// </summary>
|
||||
Medium = 2,
|
||||
|
||||
/// <summary>
|
||||
/// High severity, displays three exclamation marks
|
||||
/// </summary>
|
||||
High = 3,
|
||||
}
|
||||
}
|
||||
38
Content.Shared.Database/NoteType.cs
Normal file
38
Content.Shared.Database/NoteType.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
namespace Content.Shared.Database;
|
||||
|
||||
/*
|
||||
* Editing the numbers here may obliterate DB records, you have been warned.
|
||||
* If you do have to edit the numbers for some reason, please create migrations.
|
||||
* Adding new types is fine (or even renaming), but do not remove or change them.
|
||||
*/
|
||||
|
||||
/// <summary>
|
||||
/// Different types of notes
|
||||
/// </summary>
|
||||
public enum NoteType
|
||||
{
|
||||
/// <summary>
|
||||
/// Normal note
|
||||
/// </summary>
|
||||
Note = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Watchlist, a secret note that gets shown to online admins every time a player connects
|
||||
/// </summary>
|
||||
Watchlist = 1,
|
||||
|
||||
/// <summary>
|
||||
/// A message, type of note that gets explicitly shown to the player
|
||||
/// </summary>
|
||||
Message = 2,
|
||||
|
||||
/// <summary>
|
||||
/// A server ban, converted to a shared note
|
||||
/// </summary>
|
||||
ServerBan = 3,
|
||||
|
||||
/// <summary>
|
||||
/// A role ban, converted to a shared note
|
||||
/// </summary>
|
||||
RoleBan = 4,
|
||||
}
|
||||
Reference in New Issue
Block a user