1
0

ActivatableUIRequiresPanelComponent.cs 552 B

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