biome.json 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. "type" : "object",
  3. "$schema" : "http://json-schema.org/draft-04/schema",
  4. "title" : "VCMI map obstacle set format",
  5. "description" : "Description of map object set, used only as sub-schema of object",
  6. "required" : ["biome", "templates"],
  7. "additionalProperties" : false,
  8. "properties" : {
  9. "biome" : {
  10. "type" : "object",
  11. "properties": {
  12. "objectType" : {
  13. "type" : "string",
  14. "enmum": ["mountain", "tree", "lake", "crater", "rock", "plant", "structure", "animal", "other"],
  15. "description" : "Type of the obstacle set"
  16. },
  17. "terrain" : {
  18. "anyOf": [
  19. {
  20. "type" : "string",
  21. "description" : "Terrain of the obstacle set"
  22. },
  23. {
  24. "type" : "array",
  25. "items" : { "type" : "string" },
  26. "description" : "Terrains of the obstacle set"
  27. }
  28. ]
  29. },
  30. "faction" : {
  31. "anyOf": [
  32. {
  33. "type" : "string",
  34. "description" : "Faction of the zone"
  35. },
  36. {
  37. "type" : "array",
  38. "items" : { "type" : "string" },
  39. "description" : "Factions of the zone"
  40. }
  41. ]
  42. },
  43. "alignment" : {
  44. "anyOf": [
  45. {
  46. "type" : "string",
  47. "enum" : ["good", "evil", "neutral"],
  48. "description" : "Alignment of faction of the zone"
  49. },
  50. {
  51. "type" : "array",
  52. "items" : { "type" : "string" },
  53. "description" : "Alignment of faction of the zone"
  54. }
  55. ]
  56. }
  57. }
  58. },
  59. "templates" : {
  60. "type" : "array",
  61. "items" : { "type" : "string" },
  62. "description" : "Object templates of the obstacle set"
  63. }
  64. }
  65. }