2
0

road.json 864 B

123456789101112131415161718192021222324252627282930313233343536
  1. {
  2. "type" : "object",
  3. "$schema" : "http://json-schema.org/draft-04/schema",
  4. "title" : "VCMI road format",
  5. "description" : "Format used to define new roads in VCMI",
  6. "required" : [ "shortIdentifier", "text", "tilesFilename", "moveCost" ],
  7. "additionalProperties" : false,
  8. "properties" : {
  9. "shortIdentifier" :
  10. {
  11. "type" : "string",
  12. "description" : "Two-letters unique indentifier for this road. Used in map format"
  13. },
  14. "text" :
  15. {
  16. "type" : "string",
  17. "description" : "Human-readable name of the road"
  18. },
  19. "tilesFilename" :
  20. {
  21. "type" : "string",
  22. "description" : "Name of file with road graphics",
  23. "format" : "animationFile"
  24. },
  25. "moveCost" :
  26. {
  27. "type" : "number",
  28. "description" : "How many movement points needed to move hero"
  29. },
  30. "index" :
  31. {
  32. "type" : "number",
  33. "description" : "Internal, do not use"
  34. }
  35. }
  36. }