2021-12-16 23:42:02 +13:00
|
|
|
using Content.Shared.Access.Systems;
|
|
|
|
|
using Content.Shared.PDA;
|
2023-07-29 10:25:27 +02:00
|
|
|
using Content.Shared.StatusIcon;
|
2022-07-10 18:36:53 -07:00
|
|
|
using Robust.Shared.GameStates;
|
2023-07-29 10:25:27 +02:00
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
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]
|
2023-06-15 03:44:28 +02:00
|
|
|
[Access(typeof(SharedIdCardSystem), typeof(SharedPdaSystem), typeof(SharedAgentIdCardSystem), Other = AccessPermissions.ReadWrite)]
|
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]
|
2023-04-11 16:27:35 +10:00
|
|
|
// 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]
|
2023-07-22 21:19:51 -07:00
|
|
|
[Access(typeof(SharedIdCardSystem), typeof(SharedPdaSystem), typeof(SharedAgentIdCardSystem), Other = AccessPermissions.ReadWrite)]
|
2021-10-22 05:31:07 +03:00
|
|
|
public string? JobTitle;
|
2023-07-29 10:25:27 +02:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The state of the job icon rsi.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("jobIcon", customTypeSerializer: typeof(PrototypeIdSerializer<StatusIconPrototype>))]
|
|
|
|
|
[AutoNetworkedField]
|
|
|
|
|
public string JobIcon = "JobIconUnknown";
|
|
|
|
|
|
2019-09-01 22:57:22 +02:00
|
|
|
}
|
|
|
|
|
}
|