Predict IntrinsicUI (#31310)
This commit is contained in:
26
Content.Shared/UserInterface/IntrinsicUIComponent.cs
Normal file
26
Content.Shared/UserInterface/IntrinsicUIComponent.cs
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user