diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-01-02 01:48:38 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-01-02 02:41:24 +0200 |
commit | 3eeae12c498d1a4dbe969462d2ba841f77ee3ccb (patch) | |
tree | ff8eab35e732bc0749fc11677c8873a7b3a58704 /data/items.xsd | |
download | plus-3eeae12c498d1a4dbe969462d2ba841f77ee3ccb.tar.gz plus-3eeae12c498d1a4dbe969462d2ba841f77ee3ccb.tar.bz2 plus-3eeae12c498d1a4dbe969462d2ba841f77ee3ccb.tar.xz plus-3eeae12c498d1a4dbe969462d2ba841f77ee3ccb.zip |
Initial commit.
This code based on mana client http://www.gitorious.org/mana/mana
and my private repository.
Diffstat (limited to 'data/items.xsd')
-rw-r--r-- | data/items.xsd | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/data/items.xsd b/data/items.xsd new file mode 100644 index 000000000..2fb6b6671 --- /dev/null +++ b/data/items.xsd @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + + <!-- IMAGE TYPE --> + + <xsd:simpleType name="mw_ItemArtType"> + <xsd:restriction base="xsd:integer"> + <xsd:minInclusive value="0" /> + <xsd:maxInclusive value="1" /> + </xsd:restriction> + </xsd:simpleType> + + <!-- ITEMS LIST FILE SCHEMA --> + + <xsd:element name="items"> + <xsd:complexType> + <xsd:sequence> + + <xsd:element name="item" minOccurs="0" maxOccurs="unbounded"> + <xsd:complexType> + <xsd:simpleContent> + <xsd:extension base="xsd:string"> + <xsd:attribute name="name" type="xsd:string" /> + <xsd:attribute name="description" type="xsd:string" /> + <xsd:attribute name="effect" type="xsd:string" /> + <xsd:attribute name="id" type="xsd:positiveInteger" /> + <xsd:attribute name="image" type="xsd:positiveInteger" /> + <xsd:attribute name="art" type="mw_ItemArtType" /> + <xsd:attribute name="type" type="xsd:integer" /> + <xsd:attribute name="slot" type="xsd:integer" /> + <xsd:attribute name="weight" type="xsd:positiveInteger" /> + </xsd:extension> + </xsd:simpleContent> + </xsd:complexType> + </xsd:element> + + </xsd:sequence> + </xsd:complexType> + </xsd:element> + +</xsd:schema> |