mapHeader.json 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {
  2. "type" : "object",
  3. "$schema" : "http://json-schema.org/draft-04/schema",
  4. "title" : "VCMI map header format",
  5. "description" : "Part of map in json format, defines core settings of the map",
  6. "required" : [ "victoryIconIndex", "victoryString", "defeatIconIndex", "defeatString" ],
  7. "additionalProperties" : false,
  8. "properties" : {
  9. "victoryIconIndex" : {
  10. "type" : "number"
  11. },
  12. "victoryString" : {
  13. "type" : "string"
  14. },
  15. "defeatIconIndex" : {
  16. "type" : "number"
  17. },
  18. "defeatString" : {
  19. "type" : "string"
  20. },
  21. "triggeredEvents" : {
  22. "type" : "object",
  23. "additionalProperties" : {
  24. "type" : "object",
  25. "additionalProperties" : false,
  26. "properties" : {
  27. "required" : [ "condition", "message", "effect" ],
  28. "condition" : { "type" : "array" },
  29. "description" : { "type" : "string" },
  30. "message" : { "type" : "string" },
  31. "effect" : {
  32. "type" : "object",
  33. "additionalProperties" : false,
  34. "required" : [ "type", "messageToSend" ],
  35. "properties" : {
  36. "type" : { "type" : "string" },
  37. "messageToSend" : { "type" : "string" }
  38. }
  39. }
  40. }
  41. }
  42. }
  43. }
  44. }