mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-02-15 03:50:54 +01:00
* Content PR for auto-componentstate sourcegen # Conflicts: # Content.Shared/Chat/TypingIndicator/TypingIndicatorComponent.cs # Content.Shared/Content.Shared.csproj # SpaceStation14.sln * shared file too * afterautohandlestate example * oops * anudda * access fixed * smart
24 lines
784 B
C#
24 lines
784 B
C#
using Content.Shared.Access.Systems;
|
|
using Content.Shared.PDA;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Access.Components
|
|
{
|
|
[RegisterComponent, NetworkedComponent]
|
|
[AutoGenerateComponentState]
|
|
[Access(typeof(SharedIdCardSystem), typeof(SharedPDASystem), typeof(SharedAgentIdCardSystem))]
|
|
public sealed partial class IdCardComponent : Component
|
|
{
|
|
[DataField("fullName")]
|
|
[AutoNetworkedField]
|
|
[Access(typeof(SharedIdCardSystem), typeof(SharedPDASystem), typeof(SharedAgentIdCardSystem),
|
|
Other = AccessPermissions.ReadWrite)] // FIXME Friends
|
|
public string? FullName;
|
|
|
|
[DataField("jobTitle")]
|
|
[AutoNetworkedField]
|
|
public string? JobTitle;
|
|
}
|
|
}
|