Files
tbd-station-14/Content.Shared/FingerprintReader/FingerprintReaderComponent.cs
ScarKy0 ee33792b33 Event based lock access (#40883)
* init

* some bonus stuff

* CheckForAnyReaders

* reader

* doc

* review

* fuck yaml

* Me when I push changes myshelf

---------

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
2025-10-17 02:04:43 +00:00

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;
}