24 lines
884 B
C#
24 lines
884 B
C#
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
||
|
|
|
||
|
|
namespace Content.Client.Guidebook;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// This component stores a reference to a guidebook that contains information relevant to this entity.
|
||
|
|
/// </summary>
|
||
|
|
[RegisterComponent]
|
||
|
|
public sealed class GuideHelpComponent : Component
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// What guides to include show when opening the guidebook. The first entry will be used to select the currently
|
||
|
|
/// selected guidebook.
|
||
|
|
/// </summary>
|
||
|
|
[DataField("guides", customTypeSerializer: typeof(PrototypeIdListSerializer<GuideEntryPrototype>), required: true)]
|
||
|
|
public List<string> Guides = new();
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Whether or not to automatically include the children of the given guides.
|
||
|
|
/// </summary>
|
||
|
|
[DataField("includeChildren")]
|
||
|
|
public bool IncludeChildren = true;
|
||
|
|
}
|