Updated schema.json

This commit is contained in:
Ben C 2022-02-10 19:21:30 -05:00
parent 7469b03677
commit f326422b85
3 changed files with 32 additions and 4 deletions

View File

@ -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)
{

View File

@ -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
{

View File

@ -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",