summaryrefslogtreecommitdiff
path: root/testxml/xsd
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-07 01:22:25 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-07 01:22:25 +0300
commit274db028df208773377e0f8826918f34e1ce79bb (patch)
tree983899995d154a8785014b2021e63625d64c7b5a /testxml/xsd
parent3bf3c1375fcf65755e360ad8108afdb758a89c0a (diff)
downloadevol-tools-274db028df208773377e0f8826918f34e1ce79bb.tar.gz
evol-tools-274db028df208773377e0f8826918f34e1ce79bb.tar.bz2
evol-tools-274db028df208773377e0f8826918f34e1ce79bb.tar.xz
evol-tools-274db028df208773377e0f8826918f34e1ce79bb.zip
testxml: add support for new horses.xml format into xsd.
Diffstat (limited to 'testxml/xsd')
-rw-r--r--testxml/xsd/tmw.xsd22
1 files changed, 16 insertions, 6 deletions
diff --git a/testxml/xsd/tmw.xsd b/testxml/xsd/tmw.xsd
index 485cb9f..f44b439 100644
--- a/testxml/xsd/tmw.xsd
+++ b/testxml/xsd/tmw.xsd
@@ -1490,6 +1490,11 @@
</xs:complexType>
<xs:element name="horses" type="root_horses"/>
+ <xs:complexType name="horse_offset">
+ <xs:attribute name="direction" type="xs:string" use="required"/>
+ <xs:attribute name="horseOffsetX" type="xs:int" default="0"/>
+ <xs:attribute name="horseOffsetY" type="xs:int" default="0"/>
+ </xs:complexType>
<xs:complexType name="horse_sprite">
<xs:simpleContent>
<xs:extension base="xs:string">
@@ -1507,11 +1512,21 @@
</xs:complexType>
<xs:complexType name="horse_node">
<xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="offset">
+ <xs:complexType>
+ <xs:attribute name="direction" type="xs:string" use="required"/>
+ <xs:attribute name="riderOffsetX" type="xs:int" default="0"/>
+ <xs:attribute name="riderOffsetY" type="xs:int" default="0"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:choice>
<xs:element name="up" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="sprite" type="horse_sprite" />
+ <xs:element name="offset" type="horse_offset" />
</xs:choice>
</xs:sequence>
</xs:complexType>
@@ -1521,18 +1536,13 @@
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="sprite" type="horse_sprite" />
+ <xs:element name="offset" type="horse_offset" />
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="id" type="xs:int" use="required"/>
- <xs:attribute name="offsetX" type="xs:int" default="0"/>
- <xs:attribute name="offsetY" type="xs:int" default="0"/>
- <xs:attribute name="upOffsetX" type="xs:int" default="0"/>
- <xs:attribute name="upOffsetY" type="xs:int" default="0"/>
- <xs:attribute name="downOffsetX" type="xs:int" default="0"/>
- <xs:attribute name="downOffsetY" type="xs:int" default="0"/>
</xs:complexType>
<xs:element name="itemfields" type="root_itemfields"/>