items.xsd 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  3. <!-- IMAGE TYPE -->
  4. <xsd:simpleType name="mw_ItemArtType">
  5. <xsd:restriction base="xsd:integer">
  6. <xsd:minInclusive value="0" />
  7. <xsd:maxInclusive value="1" />
  8. </xsd:restriction>
  9. </xsd:simpleType>
  10. <!-- ITEMS LIST FILE SCHEMA -->
  11. <xsd:element name="items">
  12. <xsd:complexType>
  13. <xsd:sequence>
  14. <xsd:element name="item" minOccurs="0" maxOccurs="unbounded">
  15. <xsd:complexType>
  16. <xsd:simpleContent>
  17. <xsd:extension base="xsd:string">
  18. <xsd:attribute name="name" type="xsd:string" />
  19. <xsd:attribute name="description" type="xsd:string" />
  20. <xsd:attribute name="effect" type="xsd:string" />
  21. <xsd:attribute name="id" type="xsd:positiveInteger" />
  22. <xsd:attribute name="image" type="xsd:positiveInteger" />
  23. <xsd:attribute name="art" type="mw_ItemArtType" />
  24. <xsd:attribute name="type" type="xsd:integer" />
  25. <xsd:attribute name="slot" type="xsd:integer" />
  26. <xsd:attribute name="weight" type="xsd:positiveInteger" />
  27. </xsd:extension>
  28. </xsd:simpleContent>
  29. </xsd:complexType>
  30. </xsd:element>
  31. </xsd:sequence>
  32. </xsd:complexType>
  33. </xsd:element>
  34. </xsd:schema>