ActivatableUIRequiresLockComponent.cs 536 B

1234567891011121314151617
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.Lock;
  3. /// <summary>
  4. /// This is used for activatable UIs that require the entity to have a lock in a certain state.
  5. /// </summary>
  6. [RegisterComponent, NetworkedComponent, Access(typeof(LockSystem))]
  7. public sealed partial class ActivatableUIRequiresLockComponent : Component
  8. {
  9. /// <summary>
  10. /// TRUE: the lock must be locked to access the UI.
  11. /// FALSE: the lock must be unlocked to access the UI.
  12. /// </summary>
  13. [DataField]
  14. public bool RequireLocked;
  15. }