fish-station/Content.Shared/Power/Components/UIPowerStateComponent.cs
ArtisticRoomba dde01f746f
Basic Dynamic Power Consumption Systems (#41885)
* init commit

* Addr reviews
2025-12-22 16:43:02 +00:00

16 lines
531 B
C#

namespace Content.Shared.Power.Components;
/// <summary>
/// Component for entities that want to increase their power usage to a working state when
/// a UI on the machine is open. Requires <see cref="PowerStateComponent"/>.
/// </summary>
[RegisterComponent]
public sealed partial class UIPowerStateComponent : Component
{
/// <summary>
/// List of UI keys that will trigger the working state.
/// If null, any UI open will trigger the working state.
/// </summary>
[DataField]
public List<Enum>? Keys;
}