You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
176 lines
4.7 KiB
176 lines
4.7 KiB
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"type": "object",
|
|
"properties": {
|
|
"schemaVersion": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"resources": {
|
|
"type": "object",
|
|
"propertyNames": {
|
|
"$ref": "#/$defs/__schema0"
|
|
},
|
|
"additionalProperties": {
|
|
"type": "object",
|
|
"properties": {
|
|
"kind": {
|
|
"type": "string",
|
|
"enum": ["image", "atlas", "audio", "font", "graphic"]
|
|
},
|
|
"path": {
|
|
"type": "string",
|
|
"pattern": "^[a-zA-Z0-9_-](?:[a-zA-Z0-9_.-]*[a-zA-Z0-9_-])?(?:\\/[a-zA-Z0-9_-](?:[a-zA-Z0-9_.-]*[a-zA-Z0-9_-])?)*$"
|
|
},
|
|
"load": {
|
|
"type": "string",
|
|
"enum": ["catalog", "board", "phase", "lazy"]
|
|
},
|
|
"phase": {
|
|
"$ref": "#/$defs/__schema0"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"altKey": {
|
|
"$ref": "#/$defs/__schema0"
|
|
},
|
|
"width": {
|
|
"type": "integer",
|
|
"exclusiveMinimum": 0,
|
|
"maximum": 9007199254740991
|
|
},
|
|
"height": {
|
|
"type": "integer",
|
|
"exclusiveMinimum": 0,
|
|
"maximum": 9007199254740991
|
|
},
|
|
"regions": {
|
|
"type": "object",
|
|
"propertyNames": {
|
|
"$ref": "#/$defs/__schema0"
|
|
},
|
|
"additionalProperties": {
|
|
"type": "object",
|
|
"properties": {
|
|
"x": {
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"maximum": 9007199254740991
|
|
},
|
|
"y": {
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"maximum": 9007199254740991
|
|
},
|
|
"width": {
|
|
"type": "integer",
|
|
"exclusiveMinimum": 0,
|
|
"maximum": 9007199254740991
|
|
},
|
|
"height": {
|
|
"type": "integer",
|
|
"exclusiveMinimum": 0,
|
|
"maximum": 9007199254740991
|
|
}
|
|
},
|
|
"required": ["x", "y", "width", "height"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"fallback": {
|
|
"oneOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"kind": {
|
|
"type": "string",
|
|
"const": "text"
|
|
},
|
|
"key": {
|
|
"$ref": "#/$defs/__schema0"
|
|
}
|
|
},
|
|
"required": ["kind", "key"],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"kind": {
|
|
"type": "string",
|
|
"const": "resource"
|
|
},
|
|
"resourceId": {
|
|
"$ref": "#/$defs/__schema0"
|
|
}
|
|
},
|
|
"required": ["kind", "resourceId"],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"kind": {
|
|
"type": "string",
|
|
"const": "omit"
|
|
}
|
|
},
|
|
"required": ["kind"],
|
|
"additionalProperties": false
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": ["kind", "path", "load", "required", "fallback"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"slots": {
|
|
"type": "object",
|
|
"propertyNames": {
|
|
"$ref": "#/$defs/__schema0"
|
|
},
|
|
"additionalProperties": {
|
|
"type": "object",
|
|
"properties": {
|
|
"resourceId": {
|
|
"$ref": "#/$defs/__schema0"
|
|
},
|
|
"region": {
|
|
"$ref": "#/$defs/__schema0"
|
|
}
|
|
},
|
|
"required": ["resourceId"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"back": {
|
|
"type": "object",
|
|
"properties": {
|
|
"resourceId": {
|
|
"$ref": "#/$defs/__schema0"
|
|
},
|
|
"region": {
|
|
"$ref": "#/$defs/__schema0"
|
|
}
|
|
},
|
|
"required": ["resourceId"],
|
|
"additionalProperties": false
|
|
},
|
|
"aspectRatio": {
|
|
"type": "number",
|
|
"exclusiveMinimum": 0
|
|
}
|
|
},
|
|
"required": ["schemaVersion", "resources", "slots"],
|
|
"additionalProperties": false,
|
|
"$defs": {
|
|
"__schema0": {
|
|
"type": "string",
|
|
"pattern": "^[a-z][a-zA-Z0-9.-]{0,79}$"
|
|
}
|
|
},
|
|
"$id": "urn:juegoland:resource-set:1"
|
|
}
|