Mercurial > repos > IBDev-IBBoard.WarFoundry.API
comparison dtds/race.xsd @ 176:22429737cd77
Re #198: Add slots with counts to units
* Migrate to using new Limit objects from ibboard:ticket:24
* Parse new objects
* Move more data type definitions in to Core schema for re-use
* Make UnitType just return limit objects
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Thu, 22 Oct 2009 19:51:42 +0000 |
parents | 8e7bbea333d8 |
children | 36adabb1c3ea |
comparison
equal
deleted
inserted
replaced
175:996816199b72 | 176:22429737cd77 |
---|---|
31 <xs:element name="equipmentSlots" minOccurs="0"> | 31 <xs:element name="equipmentSlots" minOccurs="0"> |
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:simpleContent> | 36 <xs:all> |
37 <xs:extension base="xs:string"> | 37 <xs:element name="maxLimit" minOccurs="0" type="core:limit" /> |
38 <xs:attribute name="name" type="xs:string" use="required"/> | 38 </xs:all> |
39 <xs:attribute name="limit" type="xs:integer" default="0"/> | 39 <xs:attribute name="name" type="xs:string" use="required"/> |
40 <xs:attribute name="isPercentage" type="xs:boolean" default="false"/> | 40 <xs:anyAttribute/> |
41 <xs:anyAttribute/> | |
42 </xs:extension> | |
43 </xs:simpleContent> | |
44 </xs:complexType> | 41 </xs:complexType> |
45 </xs:element> | 42 </xs:element> |
46 </xs:sequence> | 43 </xs:sequence> |
47 </xs:complexType> | 44 </xs:complexType> |
48 </xs:element> | 45 </xs:element> |
59 <xs:attribute name="equipmentSlot" type="xs:string"/> | 56 <xs:attribute name="equipmentSlot" type="xs:string"/> |
60 <xs:attribute name="minNum" type="core:nonNegativeOrInfiniteInteger" default="-1"/> | 57 <xs:attribute name="minNum" type="core:nonNegativeOrInfiniteInteger" default="-1"/> |
61 <xs:attribute name="maxNum" type="core:nonNegativeOrInfiniteInteger" default="-1"/> | 58 <xs:attribute name="maxNum" type="core:nonNegativeOrInfiniteInteger" default="-1"/> |
62 <xs:attribute name="minPercentage" type="core:percentage" default="100"/> | 59 <xs:attribute name="minPercentage" type="core:percentage" default="100"/> |
63 <xs:attribute name="maxPercentage" type="core:percentage" default="100"/> | 60 <xs:attribute name="maxPercentage" type="core:percentage" default="100"/> |
64 <xs:attribute name="roundDirection" type="updowntype" default="up"/> | 61 <xs:attribute name="roundDirection" type="core:updowntype" default="up"/> |
65 <xs:attribute name="costMultiplier" type="core:nonNegativeDouble" default="1"/> | 62 <xs:attribute name="costMultiplier" type="core:nonNegativeDouble" default="1"/> |
66 <xs:attribute name="costRounding" type="costroundingtype" default="UpToHalf"/> | 63 <xs:attribute name="costRounding" type="costroundingtype" default="UpToHalf"/> |
67 <xs:anyAttribute/> | 64 <xs:anyAttribute/> |
68 </xs:complexType> | 65 </xs:complexType> |
69 </xs:element> | 66 </xs:element> |
197 <xs:attribute name="name" type="xs:string" use="required"/> | 194 <xs:attribute name="name" type="xs:string" use="required"/> |
198 <xs:attribute name="system" type="xs:string" use="required"/> | 195 <xs:attribute name="system" type="xs:string" use="required"/> |
199 <xs:anyAttribute/> | 196 <xs:anyAttribute/> |
200 </xs:complexType> | 197 </xs:complexType> |
201 </xs:element> | 198 </xs:element> |
202 <xs:simpleType name="updowntype"> | |
203 <xs:restriction base="xs:string"> | |
204 <xs:enumeration value="up"/> | |
205 <xs:enumeration value="down"/> | |
206 </xs:restriction> | |
207 </xs:simpleType> | |
208 <xs:simpleType name="costroundingtype"> | 199 <xs:simpleType name="costroundingtype"> |
209 <xs:restriction base="xs:string"> | 200 <xs:restriction base="xs:string"> |
210 <xs:enumeration value="Up"/> | 201 <xs:enumeration value="Up"/> |
211 <xs:enumeration value="Down"/> | 202 <xs:enumeration value="Down"/> |
212 <xs:enumeration value="Banker"/> | 203 <xs:enumeration value="Banker"/> |