Files
tbd-station-14/Content.Shared/UserInterface/IntrinsicUIComponent.cs
2024-08-22 13:03:05 -04:00

27 lines
721 B
C#

using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.UserInterface;
[RegisterComponent, NetworkedComponent]
public sealed partial class IntrinsicUIComponent : Component
{
/// <summary>
/// List of UIs and their actions that this entity has.
/// </summary>
[DataField("uis", required: true)] public Dictionary<Enum, IntrinsicUIEntry> UIs = new();
}
[DataDefinition]
public sealed partial class IntrinsicUIEntry
{
[DataField("toggleAction", required: true)]
public EntProtoId? ToggleAction;
/// <summary>
/// The action used for this BUI.
/// </summary>
[DataField("toggleActionEntity")]
public EntityUid? ToggleActionEntity = new();
}