Validate PresetIdCardComponent.JobName prototype ids (#21361)

This commit is contained in:
DrSmugleaf
2023-10-31 15:09:10 -07:00
committed by GitHub
parent b806722c8c
commit 3a4c40c29b

View File

@@ -1,10 +1,13 @@
using Content.Shared.Roles;
using Robust.Shared.Prototypes;
namespace Content.Server.Access.Components
{
[RegisterComponent]
public sealed partial class PresetIdCardComponent : Component
{
[DataField("job")]
public string? JobName;
public ProtoId<JobPrototype>? JobName;
[DataField("name")]
public string? IdName;