Files
crystall-punk-14/Content.Shared/Lock/ItemToggleRequiresLockComponent.cs

18 lines
538 B
C#
Raw Normal View History

using Robust.Shared.GameStates;
namespace Content.Shared.Lock;
/// <summary>
/// This is used for toggleable items that require the entity to have a lock in a certain state.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(LockSystem))]
public sealed partial class ItemToggleRequiresLockComponent : Component
{
/// <summary>
/// TRUE: the lock must be locked to toggle the item.
/// FALSE: the lock must be unlocked to toggle the item.
/// </summary>
[DataField]
public bool RequireLocked;
}