2024-05-26 16:07:16 -04:00
|
|
|
using Robust.Shared.GameStates;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Lock;
|
2023-11-22 12:16:02 -05:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// This is used for activatable UIs that require the entity to have a lock in a certain state.
|
|
|
|
|
/// </summary>
|
2024-05-26 16:07:16 -04:00
|
|
|
[RegisterComponent, NetworkedComponent, Access(typeof(LockSystem))]
|
2023-11-22 12:16:02 -05:00
|
|
|
public sealed partial class ActivatableUIRequiresLockComponent : Component
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// TRUE: the lock must be locked to access the UI.
|
|
|
|
|
/// FALSE: the lock must be unlocked to access the UI.
|
|
|
|
|
/// </summary>
|
2024-05-26 16:07:16 -04:00
|
|
|
[DataField]
|
|
|
|
|
public bool RequireLocked;
|
2023-11-22 12:16:02 -05:00
|
|
|
}
|