2025-04-24 17:10:52 +03:00
using Robust.Shared.GameStates ;
2024-04-02 20:59:40 +03:00
using Robust.Shared.Prototypes ;
2024-04-20 11:51:04 +03:00
namespace Content.Shared._CP14.LockKey.Components ;
2024-04-02 20:59:40 +03:00
/// <summary>
/// a key component that can be used to unlock and lock locks from CPLockComponent
/// </summary>
2025-04-24 17:10:52 +03:00
[RegisterComponent, AutoGenerateComponentState(fieldDeltas: true), NetworkedComponent]
2024-04-20 11:51:04 +03:00
public sealed partial class CP14KeyComponent : Component
2024-04-02 20:59:40 +03:00
{
2025-04-24 17:10:52 +03:00
[DataField, AutoNetworkedField]
2024-04-02 20:59:40 +03:00
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]
2024-12-03 12:34:07 +03:00
public ProtoId < CP14LockTypePrototype > ? AutoGenerateShape = null ;
2024-04-02 20:59:40 +03:00
}