comparison dtds/race.xsd @ 183:36adabb1c3ea

Re #198: Add slots with counts to units * Remove old Min/MaxNumber/Percentage for equipment and replace with limits * Refactor equipment selections and remove "numeric for ratio" as the limits handle the upper/lower limit differences * Stop equipment selections taking an amount of 0 for out of range amounts * Add "IsValid" property for selections * Removed use of "-1" as an 'infinity' limit - now use 100% as a more correct value * Change "unlimitedSize" limit in schema to "unitSizeLimit"
author IBBoard <dev@ibboard.co.uk>
date Mon, 26 Oct 2009 20:55:04 +0000
parents 22429737cd77
children 1f39e325deee
comparison
equal deleted inserted replaced
182:6fe336109128 183:36adabb1c3ea
32 <xs:complexType> 32 <xs:complexType>
33 <xs:sequence> 33 <xs:sequence>
34 <xs:element name="equipmentSlot" maxOccurs="unbounded"> 34 <xs:element name="equipmentSlot" maxOccurs="unbounded">
35 <xs:complexType> 35 <xs:complexType>
36 <xs:all> 36 <xs:all>
37 <xs:element name="maxLimit" minOccurs="0" type="core:limit" /> 37 <xs:element name="maxLimit" minOccurs="0" type="core:limit" />
38 <xs:element ref="core:extension" minOccurs="0" />
38 </xs:all> 39 </xs:all>
39 <xs:attribute name="name" type="xs:string" use="required"/> 40 <xs:attribute name="name" type="xs:string" use="required"/>
40 <xs:anyAttribute/> 41 <xs:anyAttribute/>
41 </xs:complexType> 42 </xs:complexType>
42 </xs:element> 43 </xs:element>
46 <xs:element name="unitEquipment" minOccurs="0"> 47 <xs:element name="unitEquipment" minOccurs="0">
47 <xs:complexType> 48 <xs:complexType>
48 <xs:sequence> 49 <xs:sequence>
49 <xs:element name="unitEquipmentItem" maxOccurs="unbounded"> 50 <xs:element name="unitEquipmentItem" maxOccurs="unbounded">
50 <xs:complexType> 51 <xs:complexType>
52 <xs:all>
53 <xs:element name="minLimit" minOccurs="0" type="core:limit" />
54 <xs:element name="maxLimit" minOccurs="0" type="core:limit" />
55 <xs:element ref="core:extension" minOccurs="0" />
56 </xs:all>
51 <xs:attribute name="id" type="xs:IDREF" /> 57 <xs:attribute name="id" type="xs:IDREF" />
52 <xs:attribute name="required" type="xs:boolean" default="false"/> 58 <xs:attribute name="required" type="xs:boolean" default="false"/>
53 <!-- exclusivityGroup is deprecated in favour of the comma-separated exclusivityGroups --> 59 <!-- exclusivityGroup is deprecated in favour of the comma-separated exclusivityGroups -->
54 <xs:attribute name="exclusivityGroup" type="xs:string" default=""/> 60 <xs:attribute name="exclusivityGroup" type="xs:string" default=""/>
55 <xs:attribute name="exclusivityGroups" type="xs:string" default=""/> 61 <xs:attribute name="exclusivityGroups" type="xs:string" default=""/>
56 <xs:attribute name="equipmentSlot" type="xs:string"/> 62 <xs:attribute name="equipmentSlot" type="xs:string"/>
57 <xs:attribute name="minNum" type="core:nonNegativeOrInfiniteInteger" default="-1"/>
58 <xs:attribute name="maxNum" type="core:nonNegativeOrInfiniteInteger" default="-1"/>
59 <xs:attribute name="minPercentage" type="core:percentage" default="100"/>
60 <xs:attribute name="maxPercentage" type="core:percentage" default="100"/>
61 <xs:attribute name="roundDirection" type="core:updowntype" default="up"/> 63 <xs:attribute name="roundDirection" type="core:updowntype" default="up"/>
62 <xs:attribute name="costMultiplier" type="core:nonNegativeDouble" default="1"/> 64 <xs:attribute name="costMultiplier" type="core:nonNegativeDouble" default="1"/>
63 <xs:attribute name="costRounding" type="costroundingtype" default="UpToHalf"/> 65 <xs:attribute name="costRounding" type="costroundingtype" default="UpToHalf"/>
64 <xs:anyAttribute/> 66 <xs:anyAttribute/>
65 </xs:complexType> 67 </xs:complexType>