Files

21 lines
748 B
C#
Raw Permalink Normal View History

using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
2024-04-20 11:51:04 +03:00
namespace Content.Shared._CP14.LockKey.Components;
/// <summary>
/// a key component that can be used to unlock and lock locks from CPLockComponent
/// </summary>
[RegisterComponent, AutoGenerateComponentState(fieldDeltas: true), NetworkedComponent]
2024-04-20 11:51:04 +03:00
public sealed partial class CP14KeyComponent : Component
{
[DataField, AutoNetworkedField]
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;
}