Mercurial > repos > IBDev-IBBoard.WarFoundry.API
comparison dtds/race.xsd @ 78:f70c709dad8b
Re #82 - Add cost rounding
* Change values to match ones added in ibboard:r78
* Default to rounding up to the nearest half as this is least likely to cause invalid armies
no-open-ticket
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 19 May 2009 14:27:40 +0000 |
parents | 338f13395e64 |
children | 0b32cc40d82f |
comparison
equal
deleted
inserted
replaced
77:338f13395e64 | 78:f70c709dad8b |
---|---|
37 <xs:attribute name="maxNum" type="core:nonNegativeOrInfiniteInteger" default="-1"/> | 37 <xs:attribute name="maxNum" type="core:nonNegativeOrInfiniteInteger" default="-1"/> |
38 <xs:attribute name="minPercentage" type="core:percentage" default="100"/> | 38 <xs:attribute name="minPercentage" type="core:percentage" default="100"/> |
39 <xs:attribute name="maxPercentage" type="core:percentage" default="100"/> | 39 <xs:attribute name="maxPercentage" type="core:percentage" default="100"/> |
40 <xs:attribute name="roundDirection" type="updowntype" default="up"/> | 40 <xs:attribute name="roundDirection" type="updowntype" default="up"/> |
41 <xs:attribute name="costMultiplier" type="core:nonNegativeDouble" default="1"/> | 41 <xs:attribute name="costMultiplier" type="core:nonNegativeDouble" default="1"/> |
42 <xs:attribute name="costRounding" type="costroundingtype" default="banker-half"/> | 42 <xs:attribute name="costRounding" type="costroundingtype" default="UpToHalf"/> |
43 </xs:complexType> | 43 </xs:complexType> |
44 </xs:element> | 44 </xs:element> |
45 </xs:sequence> | 45 </xs:sequence> |
46 </xs:complexType> | 46 </xs:complexType> |
47 </xs:element> | 47 </xs:element> |
161 <xs:enumeration value="down"/> | 161 <xs:enumeration value="down"/> |
162 </xs:restriction> | 162 </xs:restriction> |
163 </xs:simpleType> | 163 </xs:simpleType> |
164 <xs:simpleType name="costroundingtype"> | 164 <xs:simpleType name="costroundingtype"> |
165 <xs:restriction base="xs:string"> | 165 <xs:restriction base="xs:string"> |
166 <xs:enumeration value="up"/> | 166 <xs:enumeration value="Up"/> |
167 <xs:enumeration value="down"/> | 167 <xs:enumeration value="Down"/> |
168 <xs:enumeration value="banker"/> | 168 <xs:enumeration value="Banker"/> |
169 <xs:enumeration value="up-half"/> | 169 <xs:enumeration value="UpToHalf"/> |
170 <xs:enumeration value="down-half"/> | 170 <xs:enumeration value="DownToHalf"/> |
171 <xs:enumeration value="banker-half"/> | 171 <xs:enumeration value="BankerToHalf"/> |
172 </xs:restriction> | 172 </xs:restriction> |
173 </xs:simpleType> | 173 </xs:simpleType> |
174 <xs:simpleType name="armourtype"> | 174 <xs:simpleType name="armourtype"> |
175 <xs:restriction base="xs:string"> | 175 <xs:restriction base="xs:string"> |
176 <xs:enumeration value="None"/> | 176 <xs:enumeration value="None"/> |