objectTemplate.json 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "type" : "object",
  3. "$schema" : "http://json-schema.org/draft-04/schema",
  4. "title" : "VCMI map object template format",
  5. "description" : "Description of map object tempate that describes appearence of object instance",
  6. "required" : [ "animation", "mask" ],
  7. "additionalProperties" : false,
  8. "properties" : {
  9. "animation" : {
  10. "type" : "string",
  11. "description" : "Path to def file with animation of this object",
  12. "format" : "defFile"
  13. },
  14. "editorAnimation" : {
  15. "type" : "string",
  16. "description" : "Optional path to def file with animation of this object to use in map editor",
  17. "format" : "defFile"
  18. },
  19. "visitableFrom" : {
  20. "type" : "array",
  21. "description" : "Directions from which this object is visible",
  22. "minItems" : 3,
  23. "maxItems" : 3,
  24. "items" : {
  25. "type" : "string",
  26. "minLength" : 3,
  27. "maxLength" : 3
  28. }
  29. },
  30. "mask" : {
  31. "type" : "array",
  32. "items" : { "type" : "string" },
  33. "description" : "Object mask that describes on which tiles object is visible/blocked/activatable"
  34. },
  35. "zIndex" : {
  36. "type" : "number",
  37. "description" : "Defines order in which objects on same tile will be blit."
  38. },
  39. "allowedTerrains" : {
  40. "type" : "array",
  41. "items" : { "type" : "string" },
  42. "description" : "List of terrain on which this object can be placed"
  43. }
  44. }
  45. }