townStructure.json 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {
  2. "type" : "object",
  3. "$schema" : "http://json-schema.org/draft-04/schema",
  4. "title" : "VCMI town structures format",
  5. "description" : "Format used to define structures visible on town screen in VCMI",
  6. "required" : [ "animation", "x", "y"],
  7. "additionalProperties" : false,
  8. "properties" : {
  9. "builds" : {
  10. "type" : "string",
  11. "description" : ""
  12. },
  13. "hidden" : {
  14. "type" : "boolean",
  15. "description" : "If upgrade, this building will replace parent animation but will not alter its behaviour"
  16. },
  17. "animation" : {
  18. "type" : "string",
  19. "description" : "Main animation file for this building",
  20. "format" : "animationFile"
  21. },
  22. "area" : {
  23. "type" : "string",
  24. "description" : "Area that indicate when building is selected.",
  25. "format" : "imageFile"
  26. },
  27. "border" : {
  28. "type" : "string",
  29. "description" : "Golden border around building, displayed when building is selected",
  30. "format" : "imageFile"
  31. },
  32. "campaignBonus" : {
  33. "type" : "string",
  34. "description" : "Town building icon for campaigns",
  35. "format" : "imageFile"
  36. },
  37. "x" : {
  38. "type" : "number",
  39. "description" : "Position on screen"
  40. },
  41. "y" : {
  42. "type" : "number",
  43. "description" : "Position on screen"
  44. },
  45. "z" : {
  46. "type" : "number",
  47. "description" : "Position on screen. Buildings with higher value will be drawn on top of other buildings"
  48. }
  49. }
  50. }