- Base deterministica: Money, id tipizzati, DMath, XxHash64, calendario - 12 file dati con schemi, validatore di schema interno, validazione semantica e hash dei dati; viaferrea-tools validate-data - Generatore di mappa (rilievo, mare, priority-flood, fiumi, laghi, copertura, giacimenti, città, hub, industrie) e viaferrea-tools genmap - Economia: città, industrie, hub, mercato con componente mondiale, prezzi locali, tariffe, lavoro in sede e a piedi, trasporto locale, registro a partita doppia, prestiti, rating, difficoltà - Salvataggi Brotli con rimappatura per id e hash di stato giornaliero - viaferrea-tools simulate con KPI CSV; 45 test verdi; ADR 0002-0006 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0191R7vXgtbAvSV4V8tj8uzL
184 lines
3.5 KiB
JSON
184 lines
3.5 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"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"version",
|
|
"profile",
|
|
"maxGradientByTraction",
|
|
"speedClasses",
|
|
"curveSpeedFactor",
|
|
"costs",
|
|
"crews",
|
|
"rules",
|
|
"trackWear",
|
|
"structures",
|
|
"physics"
|
|
],
|
|
"additionalProperties": false
|
|
}
|