mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 12:05:23 +01:00
oh and edit exporter since I moved extras
This commit is contained in:
parent
1763a39fb0
commit
e26a341640
@ -98,7 +98,7 @@ public static class SchemaExporter
|
||||
break;
|
||||
}
|
||||
|
||||
if (_title is "Star System Schema" or "Celestial Body Schema" or "Title Screen Schema")
|
||||
if (_title is "Star System Schema" or "Celestial Body Schema")
|
||||
{
|
||||
schema.Properties["extras"] = new JsonSchemaProperty {
|
||||
Type = JsonObjectType.Object,
|
||||
@ -111,6 +111,19 @@ public static class SchemaExporter
|
||||
};
|
||||
}
|
||||
|
||||
if (_title is "Title Screen Schema")
|
||||
{
|
||||
schema.Definitions["TitleScreenInfo"].Properties["extras"] = new JsonSchemaProperty {
|
||||
Type = JsonObjectType.Object,
|
||||
Description = "Extra data that may be used by extension mods",
|
||||
AllowAdditionalProperties = true,
|
||||
AdditionalPropertiesSchema = new JsonSchema
|
||||
{
|
||||
Type = JsonObjectType.Object
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return schema;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user