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]
|
2023-04-06 10:33:40 -07:00
|
|
|
[AutoGenerateComponentState]
|
2022-06-07 15:26:28 +02:00
|
|
|
[Access(typeof(SharedIdCardSystem), typeof(SharedPDASystem), typeof(SharedAgentIdCardSystem))]
|
2023-04-06 10:33:40 -07:00
|
|
|
public sealed partial class IdCardComponent : Component
|
2019-09-01 22:57:22 +02:00
|
|
|
{
|
2021-03-05 01:08:38 +01:00
|
|
|
[DataField("fullName")]
|
2023-04-06 10:33:40 -07:00
|
|
|
[AutoNetworkedField]
|
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")]
|
2023-04-06 10:33:40 -07:00
|
|
|
[AutoNetworkedField]
|
2021-10-22 05:31:07 +03:00
|
|
|
public string? JobTitle;
|
2019-09-01 22:57:22 +02:00
|
|
|
}
|
|
|
|
|
}
|