- RailNetwork: nodi, archi con profilo campionato, divisione degli archi agli agganci (anche in cantiere), indice spaziale, cavalcavia sui binari altrui - Comandi: binari, stazioni, depositi, segnali, demolizioni, rinnovi, ammodernamenti, veicoli, composizioni, linee, assegnazioni, rientro - ConstructionSystem: squadre per livello, avanzamento, usura dei binari e invecchiamento delle strutture; costi d'esercizio e valore contabile - TrainSystem: A* con vincolo di svolta, prenotazione a blocchi con catena fino a un punto sicuro sul binario semplice, fisica 8.4, stallo in salita - StationSystem e StationWork: bacini, merci con destinazione sul grafo delle linee, carico sui carri, consegne con tariffa, trasbordi - Salvataggi estesi a tutto lo stato ferroviario; 11 nuovi test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0191R7vXgtbAvSV4V8tj8uzL
212 lines
4.0 KiB
JSON
212 lines
4.0 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"title": "Costruzione (construction.json)",
|
|
"type": "object",
|
|
"properties": {
|
|
"$schema": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"profile": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": [
|
|
"number",
|
|
"integer",
|
|
"boolean",
|
|
"array",
|
|
"object",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"maxGradientByTraction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"steam": {
|
|
"type": "number",
|
|
"minimum": 0.001,
|
|
"maximum": 0.2
|
|
},
|
|
"diesel": {
|
|
"type": "number",
|
|
"minimum": 0.001,
|
|
"maximum": 0.2
|
|
},
|
|
"electric": {
|
|
"type": "number",
|
|
"minimum": 0.001,
|
|
"maximum": 0.2
|
|
},
|
|
"highspeed": {
|
|
"type": "number",
|
|
"minimum": 0.001,
|
|
"maximum": 0.2
|
|
}
|
|
},
|
|
"required": [
|
|
"steam",
|
|
"diesel",
|
|
"electric",
|
|
"highspeed"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"speedClasses": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"trackClass": {
|
|
"type": "string",
|
|
"pattern": "^[a-z][a-z0-9_]*$"
|
|
},
|
|
"minRadiusM": {
|
|
"type": "number",
|
|
"minimum": 1
|
|
},
|
|
"costMultiplier": {
|
|
"type": "number",
|
|
"minimum": 0.1
|
|
}
|
|
},
|
|
"required": [
|
|
"trackClass",
|
|
"minRadiusM",
|
|
"costMultiplier"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"minItems": 1
|
|
},
|
|
"curveSpeedFactor": {
|
|
"type": "number",
|
|
"minimum": 0,
|
|
"maximum": 2
|
|
},
|
|
"costs": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": [
|
|
"number",
|
|
"integer",
|
|
"boolean",
|
|
"array",
|
|
"object",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"crews": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": [
|
|
"number",
|
|
"integer",
|
|
"boolean",
|
|
"array",
|
|
"object",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"rules": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": [
|
|
"number",
|
|
"integer",
|
|
"boolean",
|
|
"array",
|
|
"object",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"trackWear": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": [
|
|
"number",
|
|
"integer",
|
|
"boolean",
|
|
"array",
|
|
"object",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"structures": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": [
|
|
"number",
|
|
"integer",
|
|
"boolean",
|
|
"array",
|
|
"object",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"physics": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": [
|
|
"number",
|
|
"integer",
|
|
"boolean",
|
|
"array",
|
|
"object",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"stations": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": [
|
|
"number",
|
|
"integer",
|
|
"boolean",
|
|
"array",
|
|
"object",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"operations": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": [
|
|
"number",
|
|
"integer",
|
|
"boolean",
|
|
"array",
|
|
"object",
|
|
"string"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"version",
|
|
"profile",
|
|
"maxGradientByTraction",
|
|
"speedClasses",
|
|
"curveSpeedFactor",
|
|
"costs",
|
|
"crews",
|
|
"rules",
|
|
"trackWear",
|
|
"structures",
|
|
"physics",
|
|
"stations",
|
|
"operations"
|
|
],
|
|
"additionalProperties": false
|
|
}
|