forked from SpaceStation14-Shenanigans/Monolith
ebcfbd6abf
* yay I love merging tons of things 1 * ports fix 1 * a * fixes * https://github.com/space-wizards/space-station-14/pull/36847 * HOTFIX: Fix camera auto-orienting (#37437) * Fix camera auto-orienting * Optimise * Ghost friction fix (#37124) * commit * fix for real * https://github.com/space-wizards/space-station-14/pull/37154 * Fix excessive CPU usage in MoverController - fixes cryosleep lag (#3790) * don't process paused entities * Allow ghosts to move on paused maps * clarify comment * chore: automatically update REUSE headers * fix attempt * fixes 2 * chore: automatically update REUSE headers * fixes error. * a * 2 * fixes hooray * chore: automatically update REUSE headers * Ports cleanup * more fixes and more ports * chore: automatically update REUSE headers * a * aww * next error sir * final * final * chore: automatically update REUSE headers * uhj * next * undoes * fixes linters --------- Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com> Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Co-authored-by: Alkheemist <alkheemist@gmail.com> Co-authored-by: monolith8319 <195513600+monolith8319@users.noreply.github.com> Co-authored-by: Whatstone <whatston3@gmail.com> Co-authored-by: Jajsha <101492056+Zap527@users.noreply.github.com> Co-authored-by: Tayrtahn <tayrtahn@gmail.com>
50 lines
1.4 KiB
C#
50 lines
1.4 KiB
C#
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
|
|
{
|
|
/// <summary>
|
|
/// The file containing the contents of this guide.
|
|
/// </summary>
|
|
[DataField(required: true)] public ResPath Text = default!;
|
|
|
|
/// <summary>
|
|
/// The unique id for this guide.
|
|
/// </summary>
|
|
[IdDataField]
|
|
public string Id = default!;
|
|
|
|
/// <summary>
|
|
/// The name of this guide. This gets localized.
|
|
/// </summary>
|
|
[DataField(required: true)] public string Name = default!;
|
|
|
|
/// <summary>
|
|
/// The "children" of this guide for when guides are shown in a tree / table of contents.
|
|
/// </summary>
|
|
[DataField]
|
|
public List<ProtoId<GuideEntryPrototype>> Children = new();
|
|
|
|
/// <summary>
|
|
/// Enable filtering of items.
|
|
/// </summary>
|
|
[DataField] public bool FilterEnabled = default!;
|
|
|
|
[DataField] public bool RuleEntry;
|
|
|
|
/// <summary>
|
|
/// 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 <see cref="Children"/>.
|
|
/// </summary>
|
|
[DataField] public int Priority = 0;
|
|
}
|