using Robust.Shared.Prototypes;
using Robust.Shared.Utility;
namespace Content.Shared.Guidebook;
[Prototype]
public sealed partial class GuideEntryPrototype : GuideEntry, IPrototype
{
public string ID => Id;
}
[Virtual]
public class GuideEntry
{
///
/// The file containing the contents of this guide.
///
[DataField(required: true)] public ResPath Text = default!;
///
/// The unique id for this guide.
///
[IdDataField]
public string Id = default!;
///
/// The name of this guide. This gets localized.
///
[DataField(required: true)] public string Name = default!;
///
/// The "children" of this guide for when guides are shown in a tree / table of contents.
///
[DataField]
public List> Children = new();
///
/// Enable filtering of items.
///
[DataField] public bool FilterEnabled = default!;
[DataField] public bool RuleEntry;
///
/// Priority for sorting top-level guides when shown in a tree / table of contents.
/// If the guide is the child of some other guide, the order simply determined by the order of children in .
///
[DataField] public int Priority = 0;
}