[Feat] Обновление для визора СБ (#274)

* add: security hud update

* access & fix names

* translates

* fix
This commit is contained in:
CaypenNow
2024-06-01 12:30:21 +05:00
committed by GitHub
parent a2daf19d5e
commit 3a5fcf35a5
16 changed files with 396 additions and 48 deletions

View File

@@ -0,0 +1,44 @@
using Content.Shared.Security;
using Robust.Shared.Serialization;
namespace Content.Shared._White.SecurityHud;
[Serializable, NetSerializable]
public enum SecurityHudUiKey
{
Key
}
[Serializable, NetSerializable]
public sealed class SecurityHudBUIState : BoundUserInterfaceState
{
public IReadOnlyCollection<string> Ids { get; set; }
public NetEntity User { get; set; }
public NetEntity Target { get; private set; }
public SecurityHudBUIState(IReadOnlyCollection<string> ids, NetEntity user, NetEntity target)
{
Ids = ids;
User = user;
Target = target;
}
}
[Serializable, NetSerializable]
public class SecurityHudStatusSelectedMessage : BoundUserInterfaceMessage
{
public SecurityStatus Status { get; private set; }
public NetEntity User { get; private set; }
public NetEntity Target { get; private set; }
public SecurityHudStatusSelectedMessage(SecurityStatus status, NetEntity user, NetEntity target)
{
Status = status;
User = user;
Target = target;
}
}