F1: economia headless, dati validati, generatore di mappa e salvataggi
- 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
This commit is contained in:
113 files changed
+12553
-23
No files matched your search
@@ -0,0 +1,462 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "Bilanciamento (balance.json)",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"$schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"time": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"tickMs": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"ticksPerDay": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"daysPerMonth": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"monthsPerYear": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"trainClockFactor": {
|
||||
"type": "number",
|
||||
"minimum": 1
|
||||
},
|
||||
"speeds": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 64
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"defaultStartYear": {
|
||||
"type": "integer",
|
||||
"minimum": 1800,
|
||||
"maximum": 2300
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"tickMs",
|
||||
"ticksPerDay",
|
||||
"daysPerMonth",
|
||||
"monthsPerYear",
|
||||
"trainClockFactor",
|
||||
"speeds",
|
||||
"defaultStartYear"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"map": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"cellSizeM": {
|
||||
"type": "number",
|
||||
"minimum": 1
|
||||
},
|
||||
"sizesKm": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"minimum": 8,
|
||||
"maximum": 1024
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"chunkCells": {
|
||||
"type": "integer",
|
||||
"minimum": 8,
|
||||
"maximum": 256
|
||||
},
|
||||
"maxElevationM": {
|
||||
"type": "number",
|
||||
"minimum": 100
|
||||
},
|
||||
"noise": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"relief": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"hydrology": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"cover": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"deposits": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"towns": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"industries": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"hubs": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"cellSizeM",
|
||||
"sizesKm",
|
||||
"chunkCells",
|
||||
"maxElevationM",
|
||||
"noise",
|
||||
"relief",
|
||||
"hydrology",
|
||||
"cover",
|
||||
"deposits",
|
||||
"towns",
|
||||
"industries",
|
||||
"hubs"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"market": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"k": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"alpha": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"windowDays": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"minPriceFactor": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"maxPriceFactor": {
|
||||
"type": "number",
|
||||
"minimum": 1
|
||||
},
|
||||
"ratioMin": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"ratioMax": {
|
||||
"type": "number",
|
||||
"minimum": 1
|
||||
},
|
||||
"world": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"historyDays": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"k",
|
||||
"alpha",
|
||||
"windowDays",
|
||||
"minPriceFactor",
|
||||
"maxPriceFactor",
|
||||
"ratioMin",
|
||||
"ratioMax",
|
||||
"world",
|
||||
"historyDays"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"localPrice": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"lambda": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"maxDeviation": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"epsilon": {
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"lambda",
|
||||
"maxDeviation",
|
||||
"epsilon"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"industry": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"growth": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"town": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"migration": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"employment": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"localTransport": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"hubs": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"tariffs": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"finance": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"stockMarket": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"industryMaintenance": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"version",
|
||||
"time",
|
||||
"map",
|
||||
"market",
|
||||
"localPrice",
|
||||
"industry",
|
||||
"growth",
|
||||
"town",
|
||||
"migration",
|
||||
"employment",
|
||||
"localTransport",
|
||||
"hubs",
|
||||
"tariffs",
|
||||
"finance",
|
||||
"stockMarket",
|
||||
"industryMaintenance"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
Reference in new issue
Block a user