diff dtds/race.xsd @ 166:6902f49e16e0

Re #198: Add slots with counts to units * Add definition to race schema Also: * white-space changes in .csproj file
author IBBoard <dev@ibboard.co.uk>
date Tue, 06 Oct 2009 14:47:06 +0000
parents 71e50c0884a2
children 8e7bbea333d8
line wrap: on
line diff
--- a/dtds/race.xsd	Tue Oct 06 10:37:08 2009 +0000
+++ b/dtds/race.xsd	Tue Oct 06 14:47:06 2009 +0000
@@ -28,6 +28,23 @@
 											<xs:anyAttribute/>
 										</xs:complexType>
 									</xs:element>
+									<xs:element name="equipmentSlots" minOccurs="0">
+										<xs:complexType>
+											<xs:sequence>
+												<xs:element name="equipmentSlot" maxOccurs="unbounded">
+													<xs:complexType>
+														<xs:simpleContent>
+															<xs:extension base="xs:string">
+																<xs:attribute name="name" type="xs:string" use="required"/>
+																<xs:attribute name="limit" type="xs:positiveInteger" use="required"/>
+																<xs:anyAttribute/>
+															</xs:extension>
+														</xs:simpleContent>
+													</xs:complexType>
+												</xs:element>
+											</xs:sequence>
+										</xs:complexType>
+									</xs:element>
 									<xs:element name="unitEquipment" minOccurs="0">
 										<xs:complexType>
 											<xs:sequence>
@@ -38,6 +55,7 @@
 														<!-- exclusivityGroup is deprecated in favour of the comma-separated exclusivityGroups -->
 														<xs:attribute name="exclusivityGroup" type="xs:string" default=""/>
 														<xs:attribute name="exclusivityGroups" type="xs:string" default=""/>
+														<xs:attribute name="equipmentSlot" type="xs:string"/>
 														<xs:attribute name="minNum" type="core:nonNegativeOrInfiniteInteger" default="-1"/>
 														<xs:attribute name="maxNum" type="core:nonNegativeOrInfiniteInteger" default="-1"/>
 														<xs:attribute name="minPercentage" type="core:percentage" default="100"/>