{ "$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 }