Files
Delta-v/Content.Server/Access/Components/PresetIdCardComponent.cs
T
Null 72853c1b09 Senior ID cards get a custom job name (#1218)
* Allow preset id's to have different job names

* Senior roles

* Sync with Station Records

* Change markers
2024-05-18 21:29:07 +02:00

21 lines
507 B
C#

using Content.Shared.Roles;
using Robust.Shared.Prototypes;
namespace Content.Server.Access.Components;
[RegisterComponent]
public sealed partial class PresetIdCardComponent : Component
{
[DataField("job")]
public ProtoId<JobPrototype>? JobName;
[DataField("name")]
public string? IdName;
/// <summary>
/// DeltaV: Allow changing the job title, even if it'd be otherwise set by the JobPrototype
/// </summary>
[DataField("customJob")]
public string? CustomJobName;
}