mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Updated schema.json
This commit is contained in:
parent
7469b03677
commit
f326422b85
@ -203,8 +203,8 @@ namespace NewHorizons.Builder.ShipLog
|
|||||||
|
|
||||||
private static Vector2? GetManualEntryPosition(string entryId, ShipLogModule config)
|
private static Vector2? GetManualEntryPosition(string entryId, ShipLogModule config)
|
||||||
{
|
{
|
||||||
if (config.positions == null) return null;
|
if (config.entryPositions == null) return null;
|
||||||
foreach (ShipLogModule.EntryPositionInfo position in config.positions)
|
foreach (ShipLogModule.EntryPositionInfo position in config.entryPositions)
|
||||||
{
|
{
|
||||||
if (position.id == entryId)
|
if (position.id == entryId)
|
||||||
{
|
{
|
||||||
|
|||||||
2
NewHorizons/External/ShipLogModule.cs
vendored
2
NewHorizons/External/ShipLogModule.cs
vendored
@ -9,7 +9,7 @@ namespace NewHorizons.External
|
|||||||
public string[] initialReveal;
|
public string[] initialReveal;
|
||||||
public MapModeInfo mapMode;
|
public MapModeInfo mapMode;
|
||||||
public CuriosityColorInfo[] curiosities;
|
public CuriosityColorInfo[] curiosities;
|
||||||
public EntryPositionInfo[] positions;
|
public EntryPositionInfo[] entryPositions;
|
||||||
|
|
||||||
public class MapModeInfo
|
public class MapModeInfo
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1266,7 +1266,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"positions": {
|
"entryPositions": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "A set of positions to use instead of automatic layout in rumor mode",
|
"description": "A set of positions to use instead of automatic layout in rumor mode",
|
||||||
"items": {
|
"items": {
|
||||||
@ -1303,6 +1303,34 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The path to the sprite to show when the planet is unexplored in map mode"
|
"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": {
|
"scale": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"description": "Scale to apply to the planet in map mode",
|
"description": "Scale to apply to the planet in map mode",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user