mapHeader.json 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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": [ "defeatIconIndex", "defeatString", "victoryIconIndex", "victoryString" ],
  7. "additionalProperties" : false,
  8. "properties":{
  9. "defeatIconIndex": {
  10. "type":"number"
  11. },
  12. "defeatString": {
  13. "type":"string"
  14. },
  15. "victoryIconIndex": {
  16. "type":"number"
  17. },
  18. "victoryString": {
  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. }