river.json 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. "type" : "object",
  3. "$schema" : "http://json-schema.org/draft-04/schema",
  4. "title" : "VCMI river format",
  5. "description" : "Format used to define new rivers in VCMI",
  6. "required" : [ "shortIdentifier", "text", "tilesFilename", "delta" ],
  7. "additionalProperties" : false,
  8. "properties" : {
  9. "shortIdentifier" :
  10. {
  11. "type" : "string",
  12. "description" : "Two-letters unique indentifier for this river. Used in map format"
  13. },
  14. "text" :
  15. {
  16. "type" : "string",
  17. "description" : "Human-readable name of the river"
  18. },
  19. "tilesFilename" :
  20. {
  21. "type" : "string",
  22. "description" : "Name of file with river graphics",
  23. "format" : "animationFile"
  24. },
  25. "delta" :
  26. {
  27. "type" : "string",
  28. "description" : "Name of file with river delta graphics"
  29. },
  30. "paletteAnimation" : {
  31. "type" : "array",
  32. "description" : "If defined, river will be animated using palette color cycling effect",
  33. "items" :
  34. {
  35. "type" : "object",
  36. "additionalProperties" : false,
  37. "properties" : {
  38. "start" : {
  39. "type" : "number"
  40. },
  41. "length" : {
  42. "type" : "number"
  43. }
  44. }
  45. }
  46. },
  47. "index" :
  48. {
  49. "type" : "number",
  50. "description" : "Internal, do not use"
  51. }
  52. }
  53. }