mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
Contains: - Storage UI v2, required for removing DeferredClose. - Stock market refactor (mostly some basic changes to stock market, didn't want to make a whole other PR for it) - Make guidebook remember where you left off - Any other PRs are purely for fixing issues related to the above PRs or the engine update. 🆑 - add: Ported Storage UI v2. - tweak: The guidebook will now remember where you left off. --------- Co-authored-by: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Co-authored-by: DrSmugleaf <10968691+DrSmugleaf@users.noreply.github.com> Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Co-authored-by: deltanedas <39013340+deltanedas@users.noreply.github.com> Co-authored-by: 12rabbits <53499656+12rabbits@users.noreply.github.com> Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com> Co-authored-by: gluesniffler <159397573+gluesniffler@users.noreply.github.com> Co-authored-by: AJCM-git <60196617+AJCM-git@users.noreply.github.com> (cherry picked from commit 3c37ff1c48637d1cdf8bc3c6b1412dad338ea205)
51 lines
1.6 KiB
C#
51 lines
1.6 KiB
C#
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
|
using Robust.Shared.Utility;
|
|
|
|
namespace Content.Client.Guidebook;
|
|
|
|
[Virtual]
|
|
public class GuideEntry
|
|
{
|
|
/// <summary>
|
|
/// The file containing the contents of this guide.
|
|
/// </summary>
|
|
[DataField("text", 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("name", 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("children", customTypeSerializer:typeof(PrototypeIdListSerializer<GuideEntryPrototype>))]
|
|
public List<string> Children = new();
|
|
|
|
/// <summary>
|
|
/// Enable filtering of items.
|
|
/// </summary>
|
|
[DataField("filterEnabled")] 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("priority")] public int Priority = 0;
|
|
}
|
|
|
|
[Prototype("guideEntry")]
|
|
public sealed partial class GuideEntryPrototype : GuideEntry, IPrototype
|
|
{
|
|
public string ID => Id;
|
|
}
|