Predict IntrinsicUI (#31310)

This commit is contained in:
metalgearsloth
2024-08-23 03:03:05 +10:00
committed by GitHub
parent 6a549ceee4
commit 7e2de7937f
2 changed files with 13 additions and 16 deletions

View File

@@ -0,0 +1,26 @@
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();
}