mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Stop dev tools from deleting extras
This commit is contained in:
parent
11dc7551d8
commit
11b3381ac2
5
NewHorizons/External/Configs/PlanetConfig.cs
vendored
5
NewHorizons/External/Configs/PlanetConfig.cs
vendored
@ -169,6 +169,11 @@ namespace NewHorizons.External.Configs
|
||||
/// </summary>
|
||||
public WaterModule Water;
|
||||
|
||||
/// <summary>
|
||||
/// Extra data that may be used by extension mods
|
||||
/// </summary>
|
||||
public object extras;
|
||||
|
||||
public PlanetConfig()
|
||||
{
|
||||
// Always have to have a base module
|
||||
|
||||
@ -102,6 +102,11 @@ namespace NewHorizons.External.Configs
|
||||
/// </summary>
|
||||
public CuriosityColorInfo[] curiosities;
|
||||
|
||||
/// <summary>
|
||||
/// Extra data that may be used by extension mods
|
||||
/// </summary>
|
||||
public object extras;
|
||||
|
||||
public class NomaiCoordinates
|
||||
{
|
||||
[MinLength(2)]
|
||||
|
||||
@ -92,7 +92,7 @@ public static class SchemaExporter
|
||||
|
||||
if (_title is "Star System Schema" or "Celestial Body Schema")
|
||||
{
|
||||
schema.Properties.Add("extras", new JsonSchemaProperty {
|
||||
schema.Properties["extras"] = new JsonSchemaProperty {
|
||||
Type = JsonObjectType.Object,
|
||||
Description = "Extra data that may be used by extension mods",
|
||||
AllowAdditionalProperties = true,
|
||||
@ -100,7 +100,7 @@ public static class SchemaExporter
|
||||
{
|
||||
Type = JsonObjectType.Object
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
return schema;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user