Files
browser/plugins/examples/scum-server-plugin/schemas/bridge/event-start.payload.schema.json
T

76 lines
2.1 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "SCUMEventStartPayload",
"type": "object",
"additionalProperties": false,
"required": ["eventId", "eventType", "class", "title", "placard", "percent", "produces", "durationSeconds"],
"properties": {
"eventId": {
"type": "string",
"maxLength": 96,
"pattern": "^[A-Za-z0-9_.:-]{1,96}$"
},
"eventType": {
"type": "string",
"maxLength": 24,
"enum": ["range", "fixed"]
},
"class": {
"type": "integer",
"minimum": 1,
"maximum": 2,
"enum": [1, 2]
},
"durationSeconds": {
"type": "integer",
"minimum": 1
},
"maxParticipants": {
"type": "integer",
"minimum": 1
},
"announce": {
"type": "boolean"
},
"placard": {
"type": "string",
"maxLength": 500
},
"percent": {
"type": "integer",
"minimum": 0,
"maximum": 100
},
"npc": { "type": "integer", "minimum": 0 },
"item": { "type": "integer", "minimum": 0 },
"zombie": { "type": "integer", "minimum": 0 },
"animal": { "type": "integer", "minimum": 0 },
"produces": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["tradeGoodsId", "percent", "value", "r", "x", "y", "z"],
"properties": {
"tradeGoodsId": { "type": "string", "minLength": 1, "maxLength": 128 },
"catalogCode": { "type": "string", "minLength": 1, "maxLength": 128 },
"percent": { "type": "integer", "minimum": 0, "maximum": 100 },
"probability": { "type": "integer", "minimum": 0, "maximum": 100 },
"value": { "type": "integer", "minimum": 1 },
"quantity": { "type": "integer", "minimum": 1 },
"durability": { "type": "integer", "minimum": 0, "maximum": 100 },
"r": { "type": "number", "minimum": 0 },
"x": { "type": "number" },
"y": { "type": "number" },
"z": { "type": "number" }
}
}
},
"title": {
"type": "string",
"minLength": 1,
"maxLength": 80
}
}
}