feat(scum): add bounded vehicle spawn adapter
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "SCUMVehicleSpawnPayload",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["vehicleCode"],
|
||||
"properties": {
|
||||
"vehicleCode": { "type": "string", "minLength": 3, "maxLength": 64, "pattern": "^[A-Za-z][A-Za-z0-9_]{2,63}$", "enum": ["BPC_Laika_C", "BPC_WolfsWagen_C"] }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "SCUMVehicleSpawnResult",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["outcome"],
|
||||
"properties": {
|
||||
"outcome": { "type": "string", "minLength": 6, "maxLength": 9, "enum": ["succeeded", "failed", "unknown"] }
|
||||
}
|
||||
}
|
||||
@@ -57,9 +57,9 @@
|
||||
"capabilities": {
|
||||
"type": "array",
|
||||
"minItems": 6,
|
||||
"maxItems": 6,
|
||||
"maxItems": 7,
|
||||
"uniqueItems": true,
|
||||
"items": { "enum": ["component.register", "component.heartbeat", "component.health", "component.control", "game-client.bridge", "logs.stream"] },
|
||||
"items": { "enum": ["component.register", "component.heartbeat", "component.health", "component.control", "game-client.bridge", "logs.stream", "handler.vehicle.spawn"] },
|
||||
"allOf": [
|
||||
{ "contains": { "const": "component.register" } },
|
||||
{ "contains": { "const": "component.heartbeat" } },
|
||||
|
||||
Reference in New Issue
Block a user