* System & loc strings * pass over syndie contraband * fixes * grand theft pass * contrabandexamine -> contraband * examine text generation update * all composition parents necessary * bring back minor contra so it has a less confusing message * minor * weapon pass * jumpsuit pass * feet pass * AUUUUUUUUUGHHHHHHHHHHHHHHHHHH * head * AUUUUGH * ear * belt * back * fix * bro * rename for more clarity * do da review * add cvar for contraband examine --------- Co-authored-by: EmoGarbage404 <retron404@gmail.com> Co-authored-by: Nemanja <98561806+EmoGarbage404@users.noreply.github.com>
54 lines
1.6 KiB
C#
54 lines
1.6 KiB
C#
using Content.Shared.Access.Systems;
|
|
using Content.Shared.PDA;
|
|
using Content.Shared.Roles;
|
|
using Content.Shared.StatusIcon;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Access.Components;
|
|
|
|
[RegisterComponent, NetworkedComponent]
|
|
[AutoGenerateComponentState]
|
|
[Access(typeof(SharedIdCardSystem), typeof(SharedPdaSystem), typeof(SharedAgentIdCardSystem), Other = AccessPermissions.ReadWrite)]
|
|
public sealed partial class IdCardComponent : Component
|
|
{
|
|
[DataField]
|
|
[AutoNetworkedField]
|
|
// FIXME Friends
|
|
public string? FullName;
|
|
|
|
[DataField]
|
|
[AutoNetworkedField]
|
|
[Access(typeof(SharedIdCardSystem), typeof(SharedPdaSystem), typeof(SharedAgentIdCardSystem), Other = AccessPermissions.ReadWrite)]
|
|
public string? JobTitle;
|
|
|
|
/// <summary>
|
|
/// The state of the job icon rsi.
|
|
/// </summary>
|
|
[DataField]
|
|
[AutoNetworkedField]
|
|
public ProtoId<JobIconPrototype> JobIcon = "JobIconUnknown";
|
|
|
|
/// <summary>
|
|
/// The proto IDs of the departments associated with the job
|
|
/// </summary>
|
|
[DataField]
|
|
[AutoNetworkedField]
|
|
public List<ProtoId<DepartmentPrototype>> JobDepartments = new();
|
|
|
|
/// <summary>
|
|
/// Determines if accesses from this card should be logged by <see cref="AccessReaderComponent"/>
|
|
/// </summary>
|
|
[DataField]
|
|
public bool BypassLogging;
|
|
|
|
[DataField]
|
|
public LocId NameLocId = "access-id-card-component-owner-name-job-title-text";
|
|
|
|
[DataField]
|
|
public LocId FullNameLocId = "access-id-card-component-owner-full-name-job-title-text";
|
|
|
|
[DataField]
|
|
public bool CanMicrowave = true;
|
|
}
|