summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2018-01-28 11:51:31 -0500
committergumi <git@gumi.ca>2018-01-28 11:51:31 -0500
commiteb92490f1975fa3c582717a2d3fd68cdaf80b987 (patch)
tree976ba67547107f6a95a5381d06dadea9f7499941 /client
parent39ad32ff2226884613cd84babe2370f5c7cac71c (diff)
downloadtools-eb92490f1975fa3c582717a2d3fd68cdaf80b987.tar.gz
tools-eb92490f1975fa3c582717a2d3fd68cdaf80b987.tar.bz2
tools-eb92490f1975fa3c582717a2d3fd68cdaf80b987.tar.xz
tools-eb92490f1975fa3c582717a2d3fd68cdaf80b987.zip
add missing tags to xsd
Diffstat (limited to 'client')
-rw-r--r--client/tmw.xsd311
1 files changed, 308 insertions, 3 deletions
diff --git a/client/tmw.xsd b/client/tmw.xsd
index a16908f..693ffb5 100644
--- a/client/tmw.xsd
+++ b/client/tmw.xsd
@@ -445,14 +445,23 @@
<xs:element name="equipment" type="root_equipment"/>
<xs:complexType name="root_equipment">
<xs:sequence>
- <xs:element ref="its:rules" minOccurs="0"/>
<xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element name="playerbox" type="equipment_playerbox"/>
- <xs:element name="slot" type="equipment_slot"/>
+ <xs:element name="page" type="equipment_page"/>
</xs:choice>
</xs:sequence>
<xs:attribute name="image" type="xs:string" default="equipmentbox.png"/>
</xs:complexType>
+
+ <!--
+ EquipmentWindow::loadPage
+ -->
+ <xs:complexType name="equipment_page">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="playerbox" type="equipment_playerbox"/>
+ <xs:element name="slot" type="equipment_slot"/>
+ </xs:choice>
+ <xs:attribute name="name" type="xs:string"/>
+ </xs:complexType>
<!--
EquipmentWindow::loadPlayerBox
-->
@@ -754,17 +763,28 @@
<xs:attribute name="criticaldefense" type="xs:string" use="optional"/>
<xs:attribute name="mdefense" type="xs:string" use="optional"/>
<xs:attribute name="hp" type="xs:string" use="optional"/>
+ <xs:attribute name="maxhp" type="xs:string" use="optional"/>
<xs:attribute name="mp" type="xs:string" use="optional"/>
+ <xs:attribute name="maxmp" type="xs:string" use="optional"/>
<xs:attribute name="level" type="xs:string" use="optional"/>
<xs:attribute name="speed" type="xs:string" use="optional"/>
+ <xs:attribute name="atkspeed" type="xs:string" use="optional"/>
<xs:attribute name="range" type="xs:string" use="optional"/>
<xs:attribute name="flee" type="xs:string" use="optional"/>
+ <xs:attribute name="hit" type="xs:string" use="optional"/>
<xs:attribute name="str" type="xs:string" use="optional"/>
<xs:attribute name="agi" type="xs:string" use="optional"/>
<xs:attribute name="vit" type="xs:string" use="optional"/>
<xs:attribute name="int" type="xs:string" use="optional"/>
<xs:attribute name="dex" type="xs:string" use="optional"/>
<xs:attribute name="luck" type="xs:string" use="optional"/>
+ <xs:attribute name="luk" type="xs:string" use="optional"/>
+ <xs:attribute name="req-str" type="xs:string" use="optional"/>
+ <xs:attribute name="req-agi" type="xs:string" use="optional"/>
+ <xs:attribute name="req-vit" type="xs:string" use="optional"/>
+ <xs:attribute name="req-int" type="xs:string" use="optional"/>
+ <xs:attribute name="req-dex" type="xs:string" use="optional"/>
+ <xs:attribute name="req-luk" type="xs:string" use="optional"/>
<xs:attribute name="effect" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element>
@@ -1369,4 +1389,289 @@
</xs:element>
</xs:choice>
</xs:complexType>
+
+
+ <!-- probably not all tags correct here -->
+ <xs:element name="elementals" type="root_elementals"/>
+ <xs:complexType name="root_elementals">
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="include"/>
+ <xs:element name="elemental">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="sprite">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="variant" type="xs:int" default="0"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="particlefx" type="xs:string"/>
+ </xs:choice>
+ <xs:attribute name="id" type="xs:int" use="required"/>
+ <xs:attribute name="targetSelection" type="bool" default="true"/>
+ <xs:attributeGroup ref="being_basic_attributes"/>
+ <xs:attribute name="deadSortOffsetY" type="xs:int" default="31"/>
+ <xs:attribute name="startFollowDistance" type="xs:int" default="3"/>
+ <xs:attribute name="followDistance" type="xs:int" default="0"/>
+ <xs:attribute name="warpDistance" type="xs:int" default="11"/>
+ <xs:attribute name="walkSpeed" type="xs:int" default="0"/>
+ <xs:attribute name="offsetX" type="xs:int" default="0"/>
+ <xs:attribute name="offsetY" type="xs:int" default="1"/>
+ <xs:attribute name="sitOffsetX" type="xs:int" default="0"/>
+ <xs:attribute name="sitOffsetY" type="xs:int" default="1"/>
+ <xs:attribute name="moveOffsetX" type="xs:int" default="0"/>
+ <xs:attribute name="moveOffsetY" type="xs:int" default="1"/>
+ <xs:attribute name="deadOffsetX" type="xs:int" default="0"/>
+ <xs:attribute name="deadOffsetY" type="xs:int" default="1"/>
+ <xs:attribute name="attackOffsetX" type="xs:int" use="optional"/>
+ <xs:attribute name="attackOffsetY" type="xs:int" use="optional"/>
+ <xs:attribute name="thinkTime" type="xs:int" default="500"/>
+ <xs:attribute name="directionType" type="xs:int" default="1"/>
+ <xs:attribute name="sitDirectionType" type="xs:int" default="1"/>
+ <xs:attribute name="deadDirectionType" type="xs:int" default="1"/>
+ <xs:attribute name="attackDirectionType" type="xs:int" default="4"/>
+ <xs:attribute name="removeMessage" type="xs:string" use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:element name="equipmentslots" type="root_equipmentslots"/>
+ <xs:complexType name="root_equipmentslots">
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="slot">
+ <xs:complexType>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="slot" type="xs:int" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:element name="groups" type="root_groups"/>
+ <xs:complexType name="root_groups">
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="include"/>
+ <xs:element name="group">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="commands" type="groups_commands" />
+ <xs:element name="permissions" type="groups_permissions" />
+ </xs:choice>
+ <xs:attribute name="id" type="xs:int" use="required"/>
+ <xs:attribute name="name" type="xs:string" default=""/>
+ <xs:attribute name="longName" type="xs:string" default=""/>
+ <xs:attribute name="showBadge" type="bool" default="false"/>
+ <xs:attribute name="badge" type="xs:string" use="optional"/>
+ <xs:attribute name="inherit" type="xs:string" use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="groups_commands">
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="command">
+ <xs:complexType>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="use" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="groups_permissions">
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="permission">
+ <xs:complexType>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="enable" type="bool" default="true"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+
+ <!-- probably not all tags correct here -->
+ <xs:element name="homunculuses" type="root_homunculuses"/>
+ <xs:complexType name="root_homunculuses">
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="include"/>
+ <xs:element name="homunculus">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="sprite">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="variant" type="xs:int" default="0"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="particlefx" type="xs:string"/>
+ </xs:choice>
+ <xs:attribute name="id" type="xs:int" use="required"/>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="targetSelection" type="bool" default="true"/>
+ <xs:attributeGroup ref="being_basic_attributes"/>
+ <xs:attribute name="deadSortOffsetY" type="xs:int" default="31"/>
+ <xs:attribute name="startFollowDistance" type="xs:int" default="3"/>
+ <xs:attribute name="followDistance" type="xs:int" default="0"/>
+ <xs:attribute name="warpDistance" type="xs:int" default="11"/>
+ <xs:attribute name="walkSpeed" type="xs:int" default="0"/>
+ <xs:attribute name="offsetX" type="xs:int" default="0"/>
+ <xs:attribute name="offsetY" type="xs:int" default="1"/>
+ <xs:attribute name="sitOffsetX" type="xs:int" default="0"/>
+ <xs:attribute name="sitOffsetY" type="xs:int" default="1"/>
+ <xs:attribute name="moveOffsetX" type="xs:int" default="0"/>
+ <xs:attribute name="moveOffsetY" type="xs:int" default="1"/>
+ <xs:attribute name="deadOffsetX" type="xs:int" default="0"/>
+ <xs:attribute name="deadOffsetY" type="xs:int" default="1"/>
+ <xs:attribute name="attackOffsetX" type="xs:int" use="optional"/>
+ <xs:attribute name="attackOffsetY" type="xs:int" use="optional"/>
+ <xs:attribute name="thinkTime" type="xs:int" default="500"/>
+ <xs:attribute name="directionType" type="xs:int" default="1"/>
+ <xs:attribute name="sitDirectionType" type="xs:int" default="1"/>
+ <xs:attribute name="deadDirectionType" type="xs:int" default="1"/>
+ <xs:attribute name="attackDirectionType" type="xs:int" default="4"/>
+ <xs:attribute name="removeMessage" type="xs:string" use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:choice>
+ </xs:sequence>
+ </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">
+ <xs:attribute name="variant" type="xs:int" default="0"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ <xs:complexType name="root_horses">
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="include"/>
+ <xs:element name="horse" type="horse_node" />
+ </xs:choice>
+ </xs:sequence>
+ </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>
+ </xs:element>
+ <xs:element name="down" 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>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="id" type="xs:int" use="required"/>
+ </xs:complexType>
+
+ <xs:element name="itemfields" type="root_itemfields"/>
+ <xs:complexType name="root_itemfields">
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="include"/>
+ <xs:sequence>
+ <xs:element name="required" minOccurs="1" maxOccurs="1">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="field" type="itemfield_node" />
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="add" minOccurs="1" maxOccurs="1">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="field" type="itemfield_node" />
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="itemfield_node">
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="description" type="xs:string" use="required"/>
+ <xs:attribute name="signed" type="bool" default="true"/>
+ </xs:complexType>
+
+ <xs:element name="itemoptions" type="root_itemoptions"/>
+ <xs:complexType name="root_itemoptions">
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="include"/>
+ <xs:element name="option">
+ <xs:complexType>
+ <xs:attribute name="id" type="xs:int" use="required"/>
+ <xs:attribute name="field" type="xs:string" use="optional"/>
+ <xs:attribute name="field0" type="xs:string" use="optional"/>
+ <xs:attribute name="field1" type="xs:string" use="optional"/>
+ <xs:attribute name="field2" type="xs:string" use="optional"/>
+ <xs:attribute name="field3" type="xs:string" use="optional"/>
+ <xs:attribute name="field4" type="xs:string" use="optional"/>
+ <xs:attribute name="field5" type="xs:string" use="optional"/>
+ <xs:attribute name="field6" type="xs:string" use="optional"/>
+ <xs:attribute name="field7" type="xs:string" use="optional"/>
+ <xs:attribute name="field8" type="xs:string" use="optional"/>
+ <xs:attribute name="field9" type="xs:string" use="optional"/>
+ <xs:attribute name="field10" type="xs:string" use="optional"/>
+ <xs:attribute name="field11" type="xs:string" use="optional"/>
+ <xs:attribute name="field12" type="xs:string" use="optional"/>
+ <xs:attribute name="field13" type="xs:string" use="optional"/>
+ <xs:attribute name="field14" type="xs:string" use="optional"/>
+ <xs:attribute name="field15" type="xs:string" use="optional"/>
+ <xs:attribute name="field16" type="xs:string" use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
</xs:schema>