Files
crystall-punk-14/Content.Shared/UserInterface/IntrinsicUIComponent.cs

27 lines
721 B
C#
Raw Permalink Normal View History

2024-08-23 03:03:05 +10:00
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
2024-08-23 03:03:05 +10:00
namespace Content.Shared.UserInterface;
2024-08-23 03:03:05 +10:00
[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
{
2024-08-23 03:03:05 +10:00
[DataField("toggleAction", required: true)]
public EntProtoId? ToggleAction;
/// <summary>
/// The action used for this BUI.
/// </summary>
[DataField("toggleActionEntity")]
public EntityUid? ToggleActionEntity = new();
}