107 lines
2.3 KiB
JSON
107 lines
2.3 KiB
JSON
|
|
{
|
||
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||
|
|
"title": "NPC Instance Payload",
|
||
|
|
"type": "object",
|
||
|
|
"additionalProperties": false,
|
||
|
|
"required": ["schemaVersion", "npcs"],
|
||
|
|
"properties": {
|
||
|
|
"schemaVersion": {
|
||
|
|
"type": "integer",
|
||
|
|
"minimum": 1
|
||
|
|
},
|
||
|
|
"npcs": {
|
||
|
|
"type": "array",
|
||
|
|
"items": {
|
||
|
|
"type": "object",
|
||
|
|
"additionalProperties": true,
|
||
|
|
"required": ["id", "name", "position"],
|
||
|
|
"properties": {
|
||
|
|
"id": {
|
||
|
|
"type": "string",
|
||
|
|
"minLength": 1
|
||
|
|
},
|
||
|
|
"name": {
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
"description": {
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
"title": {
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
"faction": {
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
"spriteId": {
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
"defaultDialogueId": {
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
"dialogueId": {
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
"shopInventoryId": {
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
"lootTableId": {
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
"abilities": {
|
||
|
|
"type": "array",
|
||
|
|
"items": {
|
||
|
|
"type": "string"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"passiveAbilities": {
|
||
|
|
"type": "array",
|
||
|
|
"items": {
|
||
|
|
"type": "string"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"flags": {
|
||
|
|
"type": "array",
|
||
|
|
"items": {
|
||
|
|
"type": "string"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"tags": {
|
||
|
|
"type": "array",
|
||
|
|
"items": {
|
||
|
|
"type": "string"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"layer": {
|
||
|
|
"type": "integer"
|
||
|
|
},
|
||
|
|
"enabled": {
|
||
|
|
"type": "boolean"
|
||
|
|
},
|
||
|
|
"mapId": {
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
"entityType": {
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
"dialogueNodes": {
|
||
|
|
"type": "array"
|
||
|
|
},
|
||
|
|
"position": {
|
||
|
|
"type": "object",
|
||
|
|
"additionalProperties": false,
|
||
|
|
"required": ["x", "y"],
|
||
|
|
"properties": {
|
||
|
|
"x": {
|
||
|
|
"type": "integer"
|
||
|
|
},
|
||
|
|
"y": {
|
||
|
|
"type": "integer"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|