Mercurial > repos > snowblizz-super-API-ideas
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 wrap: on
line diff
--- a/dtds/army.xsd Thu Apr 09 13:55:46 2009 +0000 +++ b/dtds/army.xsd Thu Apr 09 13:58:23 2009 +0000 @@ -21,6 +21,7 @@ <xs:complexType name="unittype"> <xs:all> <xs:element name="equipment" type="equipmenttype" minOccurs="0" maxOccurs="1" /> + <xs:element name="contains" type="containstype" minOccurs="0" /> </xs:all> <xs:attribute name="id" type="xs:ID" /> <xs:attribute name="unitType" type="xs:string" use="required"/> @@ -38,6 +39,14 @@ <xs:attribute name="amount" type="core:nonNegativeDouble" use="required"/><!-- Double used to allow for percentages to be stored --> <xs:attribute name="isCustomEquipment" type="xs:boolean" default="false"/> </xs:complexType> +<xs:complexType name="containstype"> + <xs:sequence> + <xs:element name="containedUnit" type="containedunittype"/> + </xs:sequence> +</xs:complexType> +<xs:complexType name="containedunittype"> + <xs:attribute name="containedID" type="xs:IDREF" use="required"/> +</xs:complexType> <xs:complexType name="customequipmenttype"> <xs:sequence> <xs:element name="customEquip" type="customequiptype" minOccurs="0" maxOccurs="unbounded"/>