2024-05-26 16:07:16 -04:00
|
|
|
|
using Robust.Shared.GameStates;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Wires;
|
2023-08-12 17:39:58 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// This is used for activatable UIs that require the entity to have a panel in a certain state.
|
|
|
|
|
|
/// </summary>
|
2024-05-26 16:07:16 -04:00
|
|
|
|
[RegisterComponent, NetworkedComponent, Access(typeof(SharedWiresSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class ActivatableUIRequiresPanelComponent : Component
|
2023-08-12 17:39:58 -04:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// TRUE: the panel must be open to access the UI.
|
|
|
|
|
|
/// FALSE: the panel must be closed to access the UI.
|
|
|
|
|
|
/// </summary>
|
2024-05-26 16:07:16 -04:00
|
|
|
|
[DataField]
|
2023-08-12 17:39:58 -04:00
|
|
|
|
public bool RequireOpen = true;
|
|
|
|
|
|
}
|