campaignRegion.json 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {
  2. "type" : "object",
  3. "$schema" : "http://json-schema.org/draft-04/schema",
  4. "title" : "VCMI campaign region format",
  5. "description" : "Format used to define campaign regions for h3c maps in VCMI",
  6. "required" : [ "prefix", "colorSuffixLength", "desc" ],
  7. "additionalProperties" : false,
  8. "properties" : {
  9. "prefix" :
  10. {
  11. "type" : "string",
  12. "description" : "Prefix for all images from this region"
  13. },
  14. "colorSuffixLength" :
  15. {
  16. "type" : "number",
  17. "description" : "Number of symbols used to encode color, 1 or 2"
  18. },
  19. "background" : {
  20. "type" : "string",
  21. "description" : "Background image path"
  22. },
  23. "suffix" : {
  24. "type" : "array",
  25. "description" : "Enabled, Selected, Conquered"
  26. },
  27. "desc" :
  28. {
  29. "type" : "array",
  30. "description" : "List of regions in this campaign",
  31. "items" : {
  32. "type" : "object",
  33. "additionalProperties" : false,
  34. "properties" : {
  35. "infix" : {
  36. "type" : "string"
  37. },
  38. "x" : {
  39. "type" : "number"
  40. },
  41. "y" : {
  42. "type" : "number"
  43. }
  44. }
  45. }
  46. }
  47. }
  48. }