Job icons are stored on ID cards (#18233)

This commit is contained in:
PrPleGoo
2023-07-29 10:25:27 +02:00
committed by GitHub
parent 7c9d7423d2
commit 7c088ac1de
65 changed files with 685 additions and 96 deletions

View File

@@ -23,11 +23,13 @@ namespace Content.Shared.Access.Systems
[Serializable, NetSerializable]
public sealed class AgentIDCardBoundUserInterfaceState : BoundUserInterfaceState
{
public readonly HashSet<string> Icons;
public string CurrentName { get; }
public string CurrentJob { get; }
public AgentIDCardBoundUserInterfaceState(string currentName, string currentJob)
public AgentIDCardBoundUserInterfaceState(string currentName, string currentJob, HashSet<string> icons)
{
Icons = icons;
CurrentName = currentName;
CurrentJob = currentJob;
}
@@ -54,4 +56,15 @@ namespace Content.Shared.Access.Systems
Job = job;
}
}
[Serializable, NetSerializable]
public sealed class AgentIDCardJobIconChangedMessage : BoundUserInterfaceMessage
{
public string JobIcon { get; }
public AgentIDCardJobIconChangedMessage(string jobIcon)
{
JobIcon = jobIcon;
}
}
}