2024-10-22 22:47:57 +03:00
|
|
|
namespace Content.Server.Lock.Components;
|
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-10-22 22:47:57 +03:00
|
|
|
[RegisterComponent]
|
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-10-22 22:47:57 +03:00
|
|
|
[DataField("requireLocked"), ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public bool requireLocked = false;
|
2023-11-22 12:16:02 -05:00
|
|
|
}
|