private static Control MakeSection(string title, string path, bool markup, IResourceManager res)
{
- return new InfoSection(title, res.ContentFileReadAllText($"/Server Info/{path}"), markup);
+ return new InfoSection(title, res.ContentFileReadAllText($"/ServerInfo/{path}"), markup);
}
}
namespace Content.Server.Info;
-public class InfoSystem : EntitySystem
+public sealed class InfoSystem : EntitySystem
{
[Dependency] private readonly IResourceManager _res = default!;
[Dependency] private readonly IConfigurationManager _cfg = default!;
var rules = "Server could not read its rules.";
try
{
- rules = _res.ContentFileReadAllText($"/Server Info/{path}");
+ rules = _res.ContentFileReadAllText($"/ServerInfo/{path}");
}
catch (Exception)
{
- type: guideEntry
id: Botany
name: guide-entry-botany
- text: "/Server Info/Guidebook/Botany.xml"
+ text: "/ServerInfo/Guidebook/Botany.xml"
- type: guideEntry
id: Engineering
name: guide-entry-engineering
- text: "/Server Info/Guidebook/Engineering.xml"
+ text: "/ServerInfo/Guidebook/Engineering.xml"
children:
- Atmospherics
- Construction
- type: guideEntry
id: Construction
name: guide-entry-construction
- text: "/Server Info/Guidebook/Construction.xml"
+ text: "/ServerInfo/Guidebook/Construction.xml"
- type: guideEntry
id: Atmospherics
name: guide-entry-atmospherics
- text: "/Server Info/Guidebook/Atmospherics.xml"
+ text: "/ServerInfo/Guidebook/Atmospherics.xml"
children:
- Fires
- type: guideEntry
id: Fires
name: guide-entry-fires
- text: "/Server Info/Guidebook/Fires.xml"
+ text: "/ServerInfo/Guidebook/Fires.xml"
- type: guideEntry
id: ShuttleCraft
name: guide-entry-shuttle-craft
- text: "/Server Info/Guidebook/Shuttlecraft.xml"
+ text: "/ServerInfo/Guidebook/Shuttlecraft.xml"
- type: guideEntry
id: Power
name: guide-entry-power
- text: "/Server Info/Guidebook/Power.xml"
+ text: "/ServerInfo/Guidebook/Power.xml"
children:
- AME
- Singularity
- type: guideEntry
id: AME
name: guide-entry-ame
- text: "/Server Info/Guidebook/AME.xml"
+ text: "/ServerInfo/Guidebook/AME.xml"
- type: guideEntry
id: Singularity
name: guide-entry-singularity
- text: "/Server Info/Guidebook/Singularity.xml"
+ text: "/ServerInfo/Guidebook/Singularity.xml"
- type: guideEntry
id: Controls
name: guide-entry-controls
- text: "/Server Info/Guidebook/Controls/Controls.xml"
+ text: "/ServerInfo/Guidebook/Controls/Controls.xml"
children:
- Radio
- type: guideEntry
id: Radio
name: guide-entry-radio
- text: "/Server Info/Guidebook/Controls/Radio.xml"
+ text: "/ServerInfo/Guidebook/Controls/Radio.xml"
- type: guideEntry
id: Science
name: guide-entry-science
- text: "/Server Info/Guidebook/Science/Science.xml"
+ text: "/ServerInfo/Guidebook/Science/Science.xml"
children:
- AnomalousResearch
- Xenoarchaeology
- type: guideEntry
id: AnomalousResearch
name: guide-entry-anomalous-research
- text: "/Server Info/Guidebook/Science/AnomalousResearch.xml"
+ text: "/ServerInfo/Guidebook/Science/AnomalousResearch.xml"
children:
- APE
- ScannersAndVessels
- type: guideEntry
id: ScannersAndVessels
name: guide-entry-scanners-and-vessels
- text: "/Server Info/Guidebook/Science/ScannersAndVessels.xml"
+ text: "/ServerInfo/Guidebook/Science/ScannersAndVessels.xml"
- type: guideEntry
id: APE
name: guide-entry-ape
- text: "/Server Info/Guidebook/Science/APE.xml"
+ text: "/ServerInfo/Guidebook/Science/APE.xml"
- type: guideEntry
id: Xenoarchaeology
name: guide-entry-xenoarchaeology
- text: "/Server Info/Guidebook/Science/Xenoarchaeology.xml"
+ text: "/ServerInfo/Guidebook/Science/Xenoarchaeology.xml"
children:
- ArtifactReports
- TraversalDistorter
- type: guideEntry
id: ArtifactReports
name: guide-entry-artifact-reports
- text: "/Server Info/Guidebook/Science/ArtifactReports.xml"
+ text: "/ServerInfo/Guidebook/Science/ArtifactReports.xml"
- type: guideEntry
id: TraversalDistorter
name: guide-entry-traversal-distorter
- text: "/Server Info/Guidebook/Science/TraversalDistorter.xml"
+ text: "/ServerInfo/Guidebook/Science/TraversalDistorter.xml"
- type: guideEntry
id: MachineUpgrading
name: guide-entry-machine-upgrading
- text: "/Server Info/Guidebook/Science/MachineUpgrading.xml"
\ No newline at end of file
+ text: "/ServerInfo/Guidebook/Science/MachineUpgrading.xml"
\ No newline at end of file
- type: guideEntry
id: Security
name: guide-entry-security
- text: "/Server Info/Guidebook/Security/Security.xml"
+ text: "/ServerInfo/Guidebook/Security/Security.xml"
children:
- DNA
- type: guideEntry
id: DNA
name: guide-entry-dna
- text: "/Server Info/Guidebook/Security/DNA.xml"
+ text: "/ServerInfo/Guidebook/Security/DNA.xml"
- type: guideEntry
id: Jobs
name: guide-entry-jobs
- text: "/Server Info/Guidebook/Jobs.xml"
+ text: "/ServerInfo/Guidebook/Jobs.xml"
children:
- Botany
- Engineering
- type: guideEntry
id: Survival
name: guide-entry-survival
- text: "/Server Info/Guidebook/Survival.xml"
+ text: "/ServerInfo/Guidebook/Survival.xml"
- type: guideEntry
id: SS14
name: guide-entry-ss14
- text: "/Server Info/Guidebook/Space Station 14.xml"
+ text: "/ServerInfo/Guidebook/Space Station 14.xml"
children:
- Controls
- Jobs