IntrinsicUIComponent.cs 721 B

1234567891011121314151617181920212223242526
  1. using Robust.Shared.GameStates;
  2. using Robust.Shared.Prototypes;
  3. namespace Content.Shared.UserInterface;
  4. [RegisterComponent, NetworkedComponent]
  5. public sealed partial class IntrinsicUIComponent : Component
  6. {
  7. /// <summary>
  8. /// List of UIs and their actions that this entity has.
  9. /// </summary>
  10. [DataField("uis", required: true)] public Dictionary<Enum, IntrinsicUIEntry> UIs = new();
  11. }
  12. [DataDefinition]
  13. public sealed partial class IntrinsicUIEntry
  14. {
  15. [DataField("toggleAction", required: true)]
  16. public EntProtoId? ToggleAction;
  17. /// <summary>
  18. /// The action used for this BUI.
  19. /// </summary>
  20. [DataField("toggleActionEntity")]
  21. public EntityUid? ToggleActionEntity = new();
  22. }