From f326422b85990f5a895f643c0b500328d60082c9 Mon Sep 17 00:00:00 2001 From: Ben C Date: Thu, 10 Feb 2022 19:21:30 -0500 Subject: [PATCH] Updated schema.json --- .../Builder/ShipLog/RumorModeBuilder.cs | 4 +-- NewHorizons/External/ShipLogModule.cs | 2 +- NewHorizons/schema.json | 30 ++++++++++++++++++- 3 files changed, 32 insertions(+), 4 deletions(-) diff --git a/NewHorizons/Builder/ShipLog/RumorModeBuilder.cs b/NewHorizons/Builder/ShipLog/RumorModeBuilder.cs index b3d5c298..948dfa33 100644 --- a/NewHorizons/Builder/ShipLog/RumorModeBuilder.cs +++ b/NewHorizons/Builder/ShipLog/RumorModeBuilder.cs @@ -203,8 +203,8 @@ namespace NewHorizons.Builder.ShipLog private static Vector2? GetManualEntryPosition(string entryId, ShipLogModule config) { - if (config.positions == null) return null; - foreach (ShipLogModule.EntryPositionInfo position in config.positions) + if (config.entryPositions == null) return null; + foreach (ShipLogModule.EntryPositionInfo position in config.entryPositions) { if (position.id == entryId) { diff --git a/NewHorizons/External/ShipLogModule.cs b/NewHorizons/External/ShipLogModule.cs index f329bedb..9b3be829 100644 --- a/NewHorizons/External/ShipLogModule.cs +++ b/NewHorizons/External/ShipLogModule.cs @@ -9,7 +9,7 @@ namespace NewHorizons.External public string[] initialReveal; public MapModeInfo mapMode; public CuriosityColorInfo[] curiosities; - public EntryPositionInfo[] positions; + public EntryPositionInfo[] entryPositions; public class MapModeInfo { diff --git a/NewHorizons/schema.json b/NewHorizons/schema.json index 934b3218..966be976 100644 --- a/NewHorizons/schema.json +++ b/NewHorizons/schema.json @@ -1266,7 +1266,7 @@ "type": "string" } }, - "positions": { + "entryPositions": { "type": "array", "description": "A set of positions to use instead of automatic layout in rumor mode", "items": { @@ -1303,6 +1303,34 @@ "type": "string", "description": "The path to the sprite to show when the planet is unexplored in map mode" }, + "manualPosition": { + "type": "object", + "description": "Manually place this planet at the specified position", + "properties": { + "x": { + "type": "number", + "default": 0 + }, + "y": { + "type": "number", + "default": 0 + } + } + }, + "manualNavigationPosition": { + "type": "object", + "description": "Specify where this planet is in terms of navigation", + "properties": { + "x": { + "type": "integer", + "default": 0 + }, + "y": { + "type": "integer", + "default": 0 + } + } + }, "scale": { "type": "number", "description": "Scale to apply to the planet in map mode",