Delta-v/Content.Shared/FingerprintReader/FingerprintReaderComponent.cs

24 lines
727 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.FingerprintReader;
/// <summary>
/// Component for checking if a user's fingerprint matches allowed fingerprints
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
[Access(typeof(FingerprintReaderSystem))]
public sealed partial class FingerprintReaderComponent : Component
{
/// <summary>
/// The fingerprints that are allowed to access this entity.
/// </summary>
[DataField, AutoNetworkedField]
public HashSet<string> AllowedFingerprints = new();
/// <summary>
/// Whether to ignore gloves when checking fingerprints.
/// </summary>
[DataField, AutoNetworkedField]
public bool IgnoreGloves;
}