Files
crystall-punk-14/Content.Shared/_CP14/LockKey/Components/CP14KeyComponent.cs
Ed f6630e1ec9 Key distribution system (#625)
* data restruct

* yay

* Update arenas.yml

* fixes

* auto labeling

* shuffle
2024-12-03 12:34:07 +03:00

20 lines
629 B
C#

using Robust.Shared.Prototypes;
namespace Content.Shared._CP14.LockKey.Components;
/// <summary>
/// a key component that can be used to unlock and lock locks from CPLockComponent
/// </summary>
[RegisterComponent]
public sealed partial class CP14KeyComponent : Component
{
[DataField]
public List<int>? LockShape = null;
/// <summary>
/// If not null, automatically generates a key for the specified category on initialization. This ensures that the lock will be opened with a key of the same category.
/// </summary>
[DataField]
public ProtoId<CP14LockTypePrototype>? AutoGenerateShape = null;
}