flaggable.json 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {
  2. "type" : "object",
  3. "$schema" : "http://json-schema.org/draft-04/schema",
  4. "title" : "VCMI map object format",
  5. "description" : "Description of map object class",
  6. "required" : [ "message" ],
  7. "anyOf" : [ //NOTE: strictly speaking, not required - buidling can function without it, but won't do anythin
  8. {
  9. "required" : [ "bonuses" ]
  10. },
  11. {
  12. "required" : [ "dailyIncome" ]
  13. }
  14. ],
  15. "additionalProperties" : false,
  16. "properties" : {
  17. "bonuses" : {
  18. "type" : "object",
  19. "description" : "List of bonuses provided by this map object. See bonus format for more details",
  20. "additionalProperties" : { "$ref" : "bonusInstance.json" }
  21. },
  22. "message" : {
  23. "description" : "Message that will be shown to player on capturing this object",
  24. "anyOf" : [
  25. {
  26. "type" : "string"
  27. },
  28. {
  29. "type" : "number"
  30. }
  31. ]
  32. },
  33. "dailyIncome" : {
  34. "type" : "object",
  35. "additionalProperties" : {
  36. "type" : "number"
  37. },
  38. "description" : "Daily income that this building provides to owner, if any",
  39. },
  40. // Properties that might appear since this node is shared with object config
  41. "compatibilityIdentifiers" : { },
  42. "blockedVisitable" : { },
  43. "removable" : { },
  44. "aiValue" : { },
  45. "index" : { },
  46. "base" : { },
  47. "name" : { },
  48. "rmg" : { },
  49. "templates" : { },
  50. "battleground" : { },
  51. "sounds" : { }
  52. }
  53. }