Skip to content

Commit ba72f78

Browse files
committed
update: add orbits property to Waypoint and SystemWaypoint
1 parent 6ac8e2e commit ba72f78

File tree

3 files changed

+25
-7
lines changed

3 files changed

+25
-7
lines changed

models/System.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
},
1717
"x": {
1818
"type": "integer",
19-
"description": "Position in the universe in the x axis."
19+
"description": "Relative position of the system in the sector in the x axis."
2020
},
2121
"y": {
2222
"type": "integer",
23-
"description": "Position in the universe in the y axis."
23+
"description": "Relative position of the system in the sector in the y axis."
2424
},
2525
"waypoints": {
2626
"type": "array",

models/SystemWaypoint.json

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,30 @@
1010
},
1111
"x": {
1212
"type": "integer",
13-
"description": "Position in the universe in the x axis."
13+
"description": "Relative position of the waypoint on the system's x axis. This is not an absolute position in the universe."
1414
},
1515
"y": {
1616
"type": "integer",
17-
"description": "Position in the universe in the y axis."
17+
"description": "Relative position of the waypoint on the system's y axis. This is not an absolute position in the universe."
18+
},
19+
"orbitals": {
20+
"type": "array",
21+
"description": "Waypoints that orbit this waypoint.",
22+
"items": {
23+
"$ref": "./WaypointOrbital.json"
24+
}
25+
},
26+
"orbits": {
27+
"type": "string",
28+
"minLength": 1,
29+
"description": "The symbol of the parent waypoint, if this waypoint is in orbit around another waypoint. Otherwise this value is undefined."
1830
}
1931
},
2032
"required": [
2133
"symbol",
2234
"type",
2335
"x",
24-
"y"
36+
"y",
37+
"orbitals"
2538
]
2639
}

models/Waypoint.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
},
1818
"x": {
1919
"type": "integer",
20-
"description": "Position in the universe in the x axis."
20+
"description": "Relative position of the waypoint on the system's x axis. This is not an absolute position in the universe."
2121
},
2222
"y": {
2323
"type": "integer",
24-
"description": "Position in the universe in the Y axis."
24+
"description": "Relative position of the waypoint on the system's y axis. This is not an absolute position in the universe."
2525
},
2626
"orbitals": {
2727
"type": "array",
@@ -30,6 +30,11 @@
3030
"$ref": "./WaypointOrbital.json"
3131
}
3232
},
33+
"orbits": {
34+
"type": "string",
35+
"minLength": 1,
36+
"description": "The symbol of the parent waypoint, if this waypoint is in orbit around another waypoint. Otherwise this value is undefined."
37+
},
3338
"faction": {
3439
"$ref": "./WaypointFaction.json"
3540
},

0 commit comments

Comments
 (0)