17
Content.Shared/Wires/ActivatableUIRequiresPanelComponent.cs
Normal file
17
Content.Shared/Wires/ActivatableUIRequiresPanelComponent.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Shared.Wires;
|
||||
|
||||
/// <summary>
|
||||
/// This is used for activatable UIs that require the entity to have a panel in a certain state.
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, Access(typeof(SharedWiresSystem))]
|
||||
public sealed partial class ActivatableUIRequiresPanelComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// TRUE: the panel must be open to access the UI.
|
||||
/// FALSE: the panel must be closed to access the UI.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public bool RequireOpen = true;
|
||||
}
|
||||
Reference in New Issue
Block a user