2021-12-16 23:42:02 +13:00
|
|
|
using Content.Shared.Access.Systems;
|
|
|
|
|
using Content.Shared.PDA;
|
2022-07-10 18:36:53 -07:00
|
|
|
using Robust.Shared.GameStates;
|
|
|
|
|
using Robust.Shared.Serialization;
|
2019-09-01 22:57:22 +02:00
|
|
|
|
2021-12-16 23:42:02 +13:00
|
|
|
namespace Content.Shared.Access.Components
|
2019-09-01 22:57:22 +02:00
|
|
|
{
|
2022-07-10 18:36:53 -07:00
|
|
|
[RegisterComponent, NetworkedComponent]
|
2022-06-07 15:26:28 +02:00
|
|
|
[Access(typeof(SharedIdCardSystem), typeof(SharedPDASystem), typeof(SharedAgentIdCardSystem))]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class IdCardComponent : Component
|
2019-09-01 22:57:22 +02:00
|
|
|
{
|
2021-03-05 01:08:38 +01:00
|
|
|
[DataField("fullName")]
|
2022-06-07 15:26:28 +02:00
|
|
|
[Access(typeof(SharedIdCardSystem), typeof(SharedPDASystem), typeof(SharedAgentIdCardSystem),
|
|
|
|
|
Other = AccessPermissions.ReadWrite)] // FIXME Friends
|
2021-10-22 05:31:07 +03:00
|
|
|
public string? FullName;
|
2019-09-06 08:12:44 +02:00
|
|
|
|
2021-03-05 01:08:38 +01:00
|
|
|
[DataField("jobTitle")]
|
2021-10-22 05:31:07 +03:00
|
|
|
public string? JobTitle;
|
2019-09-01 22:57:22 +02:00
|
|
|
}
|
2022-07-10 18:36:53 -07:00
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
public sealed class IdCardComponentState : ComponentState
|
|
|
|
|
{
|
|
|
|
|
public string? FullName;
|
|
|
|
|
public string? JobTitle;
|
|
|
|
|
|
|
|
|
|
public IdCardComponentState(string? fullName, string? jobTitle)
|
|
|
|
|
{
|
|
|
|
|
FullName = fullName;
|
|
|
|
|
JobTitle = jobTitle;
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-09-01 22:57:22 +02:00
|
|
|
}
|