Updated nagivation components with a new way to define blocks_to_avoid

This commit is contained in:
DaanV2
2021-06-03 16:04:36 +02:00
parent 2be2a26c36
commit dbff203568
19 changed files with 158 additions and 19 deletions

View File

@@ -33,7 +33,14 @@
"type": "array",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"title": "Blocks To Avoid",
"items": { "title": "Block", "description": "UNDOCUMENTATED", "$ref": "../../../../general/block/identifier.json" }
"items": {
"title": "Block",
"description": "UNDOCUMENTATED",
"oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "UNDOCUMENTATED", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } }
]
}
},
"can_breach": {
"type": "boolean",

View File

@@ -33,7 +33,14 @@
"type": "array",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"title": "Blocks To Avoid",
"items": { "title": "Block", "description": "UNDOCUMENTATED", "$ref": "../../../../general/block/identifier.json" }
"items": {
"title": "Block",
"description": "UNDOCUMENTATED",
"oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "UNDOCUMENTATED", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } }
]
}
},
"can_breach": {
"type": "boolean",

View File

@@ -33,7 +33,14 @@
"type": "array",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"title": "Blocks To Avoid",
"items": { "title": "Block", "description": "UNDOCUMENTATED", "$ref": "../../../../general/block/identifier.json" }
"items": {
"title": "Block",
"description": "UNDOCUMENTATED",
"oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "UNDOCUMENTATED", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } }
]
}
},
"can_breach": {
"type": "boolean",

View File

@@ -33,7 +33,14 @@
"type": "array",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"title": "Blocks To Avoid",
"items": { "title": "Block", "description": "UNDOCUMENTATED", "$ref": "../../../../general/block/identifier.json" }
"items": {
"title": "Block",
"description": "UNDOCUMENTATED",
"oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "UNDOCUMENTATED", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } }
]
}
},
"can_breach": {
"type": "boolean",

View File

@@ -33,7 +33,14 @@
"type": "array",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"title": "Blocks To Avoid",
"items": { "title": "Block", "description": "UNDOCUMENTATED", "$ref": "../../../../general/block/identifier.json" }
"items": {
"title": "Block",
"description": "UNDOCUMENTATED",
"oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "UNDOCUMENTATED", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } }
]
}
},
"can_breach": {
"type": "boolean",

View File

@@ -33,7 +33,14 @@
"type": "array",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"title": "Blocks To Avoid",
"items": { "title": "Block", "description": "UNDOCUMENTATED", "$ref": "../../../../general/block/identifier.json" }
"items": {
"title": "Block",
"description": "UNDOCUMENTATED",
"oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "UNDOCUMENTATED", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } }
]
}
},
"can_breach": {
"type": "boolean",

View File

@@ -33,7 +33,14 @@
"type": "array",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"title": "Blocks To Avoid",
"items": { "title": "Block", "description": "UNDOCUMENTATED", "$ref": "../../../../general/block/identifier.json" }
"items": {
"title": "Block",
"description": "UNDOCUMENTATED",
"oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "UNDOCUMENTATED", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } }
]
}
},
"can_breach": {
"type": "boolean",

View File

@@ -33,7 +33,14 @@
"type": "array",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"title": "Blocks To Avoid",
"items": { "title": "Block", "description": "UNDOCUMENTATED", "$ref": "../../../../general/block/identifier.json" }
"items": {
"title": "Block",
"description": "UNDOCUMENTATED",
"oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "UNDOCUMENTATED", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } }
]
}
},
"can_breach": {
"type": "boolean",

View File

@@ -33,7 +33,14 @@
"type": "array",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"title": "Blocks To Avoid",
"items": { "title": "Block", "description": "UNDOCUMENTATED", "$ref": "../../../../general/block/identifier.json" }
"items": {
"title": "Block",
"description": "UNDOCUMENTATED",
"oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "UNDOCUMENTATED", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } }
]
}
},
"can_breach": {
"type": "boolean",

View File

@@ -33,7 +33,14 @@
"type": "array",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"title": "Blocks To Avoid",
"items": { "title": "Block", "description": "UNDOCUMENTATED", "$ref": "../../../../general/block/identifier.json" }
"items": {
"title": "Block",
"description": "UNDOCUMENTATED",
"oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "UNDOCUMENTATED", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } }
]
}
},
"can_breach": {
"type": "boolean",

View File

@@ -33,7 +33,14 @@
"type": "array",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"title": "Blocks To Avoid",
"items": { "title": "Block", "description": "UNDOCUMENTATED", "$ref": "../../../../general/block/identifier.json" }
"items": {
"title": "Block",
"description": "UNDOCUMENTATED",
"oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "UNDOCUMENTATED", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } }
]
}
},
"can_breach": {
"type": "boolean",

View File

@@ -33,7 +33,14 @@
"type": "array",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"title": "Blocks To Avoid",
"items": { "title": "Block", "description": "UNDOCUMENTATED", "$ref": "../../../../general/block/identifier.json" }
"items": {
"title": "Block",
"description": "UNDOCUMENTATED",
"oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "UNDOCUMENTATED", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } }
]
}
},
"can_breach": {
"type": "boolean",

View File

@@ -34,7 +34,14 @@
"type": "array",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"title": "Blocks To Avoid",
"items": { "title": "Block", "description": "UNDOCUMENTATED", "$ref": "../../../../general/block/identifier.json" }
"items": {
"title": "Block",
"description": "UNDOCUMENTATED",
"oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "UNDOCUMENTATED", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } }
]
}
},
"can_breach": {
"type": "boolean",

View File

@@ -34,7 +34,14 @@
"type": "array",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"title": "Blocks To Avoid",
"items": { "title": "Block", "description": "UNDOCUMENTATED", "$ref": "../../../../general/block/identifier.json" }
"items": {
"title": "Block",
"description": "UNDOCUMENTATED",
"oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "UNDOCUMENTATED", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } }
]
}
},
"can_breach": {
"type": "boolean",

View File

@@ -34,7 +34,14 @@
"type": "array",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"title": "Blocks To Avoid",
"items": { "title": "Block", "description": "UNDOCUMENTATED", "$ref": "../../../../general/block/identifier.json" }
"items": {
"title": "Block",
"description": "UNDOCUMENTATED",
"oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "UNDOCUMENTATED", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } }
]
}
},
"can_breach": {
"type": "boolean",

View File

@@ -34,7 +34,14 @@
"type": "array",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"title": "Blocks To Avoid",
"items": { "title": "Block", "description": "UNDOCUMENTATED", "$ref": "../../../../general/block/identifier.json" }
"items": {
"title": "Block",
"description": "UNDOCUMENTATED",
"oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "UNDOCUMENTATED", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } }
]
}
},
"can_breach": {
"type": "boolean",

View File

@@ -33,7 +33,14 @@
"type": "array",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"title": "Blocks To Avoid",
"items": { "title": "Block", "description": "UNDOCUMENTATED", "$ref": "../../../../general/block/identifier.json" }
"items": {
"title": "Block",
"description": "UNDOCUMENTATED",
"oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "UNDOCUMENTATED", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } }
]
}
},
"can_breach": {
"type": "boolean",

View File

@@ -34,7 +34,14 @@
"type": "array",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"title": "Blocks To Avoid",
"items": { "title": "Block", "description": "UNDOCUMENTATED", "$ref": "../../../../general/block/identifier.json" }
"items": {
"title": "Block",
"description": "UNDOCUMENTATED",
"oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "UNDOCUMENTATED", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } }
]
}
},
"can_breach": {
"type": "boolean",

View File

@@ -34,7 +34,14 @@
"type": "array",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"title": "Blocks To Avoid",
"items": { "title": "Block", "description": "UNDOCUMENTATED", "$ref": "../../../../general/block/identifier.json" }
"items": {
"title": "Block",
"description": "UNDOCUMENTATED",
"oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "UNDOCUMENTATED", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } }
]
}
},
"can_breach": {
"type": "boolean",
@@ -48,6 +55,12 @@
"description": "Tells the pathfinder that it can path through a closed door and break it",
"title": "Can Break Doors"
},
"can_float": {
"type": "boolean",
"default": true,
"description": "UNDOCUMENTATED",
"title": "Can Float"
},
"can_jump": {
"type": "boolean",
"default": true,