Mercurial > repos > IBDev-IBBoard.WarFoundry.API
diff 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 |
line wrap: on
line diff
--- a/dtds/race.xsd Sat Oct 24 18:59:04 2009 +0000 +++ b/dtds/race.xsd Mon Oct 26 20:55:04 2009 +0000 @@ -34,7 +34,8 @@ <xs:element name="equipmentSlot" maxOccurs="unbounded"> <xs:complexType> <xs:all> - <xs:element name="maxLimit" minOccurs="0" type="core:limit" /> + <xs:element name="maxLimit" minOccurs="0" type="core:limit" /> + <xs:element ref="core:extension" minOccurs="0" /> </xs:all> <xs:attribute name="name" type="xs:string" use="required"/> <xs:anyAttribute/> @@ -48,16 +49,17 @@ <xs:sequence> <xs:element name="unitEquipmentItem" maxOccurs="unbounded"> <xs:complexType> + <xs:all> + <xs:element name="minLimit" minOccurs="0" type="core:limit" /> + <xs:element name="maxLimit" minOccurs="0" type="core:limit" /> + <xs:element ref="core:extension" minOccurs="0" /> + </xs:all> <xs:attribute name="id" type="xs:IDREF" /> <xs:attribute name="required" type="xs:boolean" default="false"/> <!-- 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"/> - <xs:attribute name="maxPercentage" type="core:percentage" default="100"/> <xs:attribute name="roundDirection" type="core:updowntype" default="up"/> <xs:attribute name="costMultiplier" type="core:nonNegativeDouble" default="1"/> <xs:attribute name="costRounding" type="costroundingtype" default="UpToHalf"/>