GuideHelpComponent.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. using Content.Shared.Guidebook;
  2. using Robust.Shared.Prototypes;
  3. namespace Content.Client.Guidebook.Components;
  4. /// <summary>
  5. /// This component stores a reference to a guidebook that contains information relevant to this entity.
  6. /// </summary>
  7. [RegisterComponent]
  8. [Access(typeof(GuidebookSystem))]
  9. public sealed partial class GuideHelpComponent : Component
  10. {
  11. /// <summary>
  12. /// What guides to include show when opening the guidebook. The first entry will be used to select the currently
  13. /// selected guidebook.
  14. /// </summary>
  15. [DataField(required: true)]
  16. public List<ProtoId<GuideEntryPrototype>> Guides = new();
  17. /// <summary>
  18. /// Whether or not to automatically include the children of the given guides.
  19. /// </summary>
  20. [DataField("includeChildren")]
  21. [ViewVariables(VVAccess.ReadWrite)]
  22. public bool IncludeChildren = true;
  23. /// <summary>
  24. /// Whether or not to open the UI when interacting with the entity while on hand.
  25. /// Mostly intended for books
  26. /// </summary>
  27. [DataField("openOnActivation")]
  28. [ViewVariables(VVAccess.ReadWrite)]
  29. public bool OpenOnActivation;
  30. }