mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-06 14:27:29 +00:00
* revert 1218 * oops wrong file * commit changes * it works!!! * revert accidental changes * hide senior virtual job prototypes from job select * remove whitespace diff * consolidate comments * remove virtual job prototypes * these changes were not staged * remove whitespace diff * remove whitespace diff again and revert test change * Update station_engineer.yml Signed-off-by: WarMechanic <69510347+WarMechanic@users.noreply.github.com> * Update SharedJobSystem.cs Signed-off-by: WarMechanic <69510347+WarMechanic@users.noreply.github.com> * fix capitalisation typo * consolidate comments and dependencies, also change Mind to use VirtualJobName * comment correction * localise senior job names * fix build error * fix spawned cards being broken * reduced logging for finding PresetIdCard * more fixes * fix --------- Signed-off-by: WarMechanic <69510347+WarMechanic@users.noreply.github.com>
29 lines
814 B
C#
29 lines
814 B
C#
using Content.Shared.Roles;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Server.Access.Components;
|
|
|
|
[RegisterComponent]
|
|
public sealed partial class PresetIdCardComponent : Component
|
|
{
|
|
[DataField]
|
|
public ProtoId<JobPrototype>? JobName;
|
|
|
|
[DataField]
|
|
public string? IdName;
|
|
|
|
/// <summary>
|
|
/// DeltaV: Allow changing the job title, even if it'd be otherwise set by the JobPrototype
|
|
/// </summary>
|
|
[DataField]
|
|
public string? VirtualJobName;
|
|
|
|
[ViewVariables(VVAccess.ReadOnly)]
|
|
public string? VirtualJobLocalizedName => (VirtualJobName != null) ? Loc.GetString(VirtualJobName) : null;
|
|
/// <summary>
|
|
/// DeltaV: Allow changing the job icon, even if it'd be otherwise set by the JobPrototype
|
|
/// </summary>
|
|
[DataField]
|
|
public string? VirtualJobIcon;
|
|
}
|