* Moved access to ecs * Fixed tests * Moved test to integration * Better IoC * Moved preset ID card * Moved id card to ECS * Moved access component to ECS * Fixed pda access * Final touches Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
25 lines
639 B
C#
25 lines
639 B
C#
using Content.Server.Access.Systems;
|
|
using Content.Server.PDA;
|
|
using Robust.Shared.Analyzers;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
|
|
|
namespace Content.Server.Access.Components
|
|
{
|
|
[RegisterComponent]
|
|
[Friend(typeof(IdCardSystem), typeof(PDASystem))]
|
|
public class IdCardComponent : Component
|
|
{
|
|
public override string Name => "IdCard";
|
|
|
|
[DataField("originalOwnerName")]
|
|
public string OriginalOwnerName = default!;
|
|
|
|
[DataField("fullName")]
|
|
public string? FullName;
|
|
|
|
[DataField("jobTitle")]
|
|
public string? JobTitle;
|
|
}
|
|
}
|