changeset 60:0c3500fca49d

Re #61 - Complete structure of WarFoundry API objects * Add containership in Army schema so that it can be stored and retrieved
author IBBoard <dev@ibboard.co.uk>
date Thu, 09 Apr 2009 13:58:23 +0000
parents 3fa4658c50c6
children 3c77722a02b5
files dtds/army.xsd
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/dtds/army.xsd	Thu Apr 09 13:55:46 2009 +0000
     1.2 +++ b/dtds/army.xsd	Thu Apr 09 13:58:23 2009 +0000
     1.3 @@ -21,6 +21,7 @@
     1.4  <xs:complexType name="unittype">
     1.5    <xs:all>
     1.6      <xs:element name="equipment" type="equipmenttype" minOccurs="0" maxOccurs="1" />
     1.7 +    <xs:element name="contains" type="containstype" minOccurs="0" />
     1.8    </xs:all>
     1.9    <xs:attribute name="id" type="xs:ID" />
    1.10    <xs:attribute name="unitType" type="xs:string" use="required"/>
    1.11 @@ -38,6 +39,14 @@
    1.12    <xs:attribute name="amount" type="core:nonNegativeDouble" use="required"/><!-- Double used to allow for percentages to be stored -->
    1.13    <xs:attribute name="isCustomEquipment" type="xs:boolean" default="false"/>
    1.14  </xs:complexType>
    1.15 +<xs:complexType name="containstype">
    1.16 +  <xs:sequence>
    1.17 +    <xs:element name="containedUnit" type="containedunittype"/>
    1.18 +  </xs:sequence>
    1.19 +</xs:complexType>
    1.20 +<xs:complexType name="containedunittype">
    1.21 +  <xs:attribute name="containedID" type="xs:IDREF" use="required"/>
    1.22 +</xs:complexType>
    1.23  <xs:complexType name="customequipmenttype">
    1.24    <xs:sequence>
    1.25      <xs:element name="customEquip" type="customequiptype" minOccurs="0" maxOccurs="unbounded"/>