mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-17 22:31:00 +03:00
This implements the SS13 feature where ahelps display a link to get quick info when a character name is mentioned. Also just some cleanup of bwoink code cuz it sucks.
31 lines
951 B
C#
31 lines
951 B
C#
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Administration;
|
|
|
|
/// <summary>
|
|
/// Shared datatypes and constants for the administrative quick info system.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// "Quick Info" Allows admins to quickly get basic information & action links
|
|
/// about (player) entities in nice little popups.
|
|
/// </remarks>
|
|
public static class QuickInfoShared
|
|
{
|
|
public const AdminFlags RequiredFlag = AdminFlags.Adminhelp;
|
|
public const string CommandName = "_admin_quick_info";
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class Request : EntityEventArgs
|
|
{
|
|
public required NetEntity[] Entities;
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class Response : EntityEventArgs
|
|
{
|
|
public required SingleEntityInfo[] Entities;
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed record SingleEntityInfo(NetEntity Entity, bool Exists, string Name, string? Prototype);
|
|
}
|