Skip to content

Commit

Permalink
Fix #4
Browse files Browse the repository at this point in the history
  • Loading branch information
CatBackGround authored Feb 12, 2025
1 parent 4b41ce5 commit 1dbbbd8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Content.Shared/Access/SharedAgentIDCardSystem.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
using Content.Shared.StatusIcon;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;

namespace Content.Shared.Access.Systems
{
public abstract class SharedAgentIdCardSystem : EntitySystem
{
// Just for friending for now
}

/// <summary>
/// Key representing which <see cref="PlayerBoundUserInterface"/> is currently open.
/// Useful when there are multiple UI for an object. Here it's future-proofing only.
Expand All @@ -16,6 +18,7 @@ public enum AgentIDCardUiKey : byte
{
Key,
}

/// <summary>
/// Represents an <see cref="AgentIDCardComponent"/> state that can be sent to the client
/// </summary>
Expand All @@ -27,7 +30,6 @@ public sealed class AgentIDCardBoundUserInterfaceState : BoundUserInterfaceState
public string CurrentJobIconId { get; }
public uint? CurrentNumber { get; } // Corvax-Next-PDAChat

public AgentIDCardBoundUserInterfaceState(string currentName, string currentJob, string currentJobIconId);
public AgentIDCardBoundUserInterfaceState(string currentName, string currentJob, string currentJobIconId, uint? currentNumber = null) // Corvax-Next-PDAChat - Added currentNumber
{
CurrentName = currentName;
Expand All @@ -53,24 +55,29 @@ public AgentIDCardNumberChangedMessage(uint number)
public sealed class AgentIDCardNameChangedMessage : BoundUserInterfaceMessage
{
public string Name { get; }

public AgentIDCardNameChangedMessage(string name)
{
Name = name;
}
}

[Serializable, NetSerializable]
public sealed class AgentIDCardJobChangedMessage : BoundUserInterfaceMessage
{
public string Job { get; }

public AgentIDCardJobChangedMessage(string job)
{
Job = job;
}
}

[Serializable, NetSerializable]
public sealed class AgentIDCardJobIconChangedMessage : BoundUserInterfaceMessage
{
public ProtoId<JobIconPrototype> JobIconId { get; }

public AgentIDCardJobIconChangedMessage(ProtoId<JobIconPrototype> jobIconId)
{
JobIconId = jobIconId;
Expand Down

0 comments on commit 1dbbbd8

Please sign in to comment.