27 lines
721 B
C#
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();
|
|
}
|