using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.UserInterface;
[RegisterComponent]
public sealed partial class IntrinsicUIComponent : Component
{
///
/// List of UIs and their actions that this entity has.
///
[DataField("uis", required: true)] public List UIs = new();
}
[DataDefinition]
public partial class IntrinsicUIEntry
{
///
/// The BUI key that this intrinsic UI should open.
///
[DataField("key", required: true)]
public Enum? Key { get; private set; }
[DataField("toggleAction", customTypeSerializer: typeof(PrototypeIdSerializer), required: true)]
public string? ToggleAction;
///
/// The action used for this BUI.
///
[DataField("toggleActionEntity")]
public EntityUid? ToggleActionEntity = new();
}