Mercurial > repos > IBDev-IBBoard.WarFoundry.API
view dtds/warfoundry-core.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 | d63bef60bb51 |
line wrap: on
line source
<?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ibboard.co.uk/warfoundry/core" xmlns="http://ibboard.co.uk/warfoundry/core" elementFormDefault="qualified"> <xs:element name="extension"> <xs:complexType> <xs:sequence> <xs:any minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> </xs:element> <xs:complexType name="limit"> <xs:choice> <xs:element name="percentageLimit"> <xs:complexType> <xs:attribute name="limit" type="percentage" use="required"/> <xs:attribute name="round" type="updowntype" default="up" /> <xs:anyAttribute/> </xs:complexType> </xs:element> <xs:element name="sizeConstrainedLimit"> <xs:complexType> <xs:attribute name="limit" type="xs:positiveInteger" use="required"/> <xs:anyAttribute/> </xs:complexType> </xs:element> <xs:element name="absoluteLimit"> <xs:complexType> <xs:attribute name="limit" type="xs:positiveInteger" use="required"/> <xs:anyAttribute/> </xs:complexType> </xs:element> <xs:element name="unitSizeLimit"> <xs:complexType> <xs:anyAttribute/> </xs:complexType> </xs:element> </xs:choice> </xs:complexType> <xs:simpleType name="positiveOrInfiniteInteger"> <xs:union memberTypes="xs:positiveInteger infinity"/> </xs:simpleType> <xs:simpleType name="nonNegativeOrInfiniteInteger"> <xs:union memberTypes="xs:nonNegativeInteger infinity"/> </xs:simpleType> <xs:simpleType name="infinity"> <xs:restriction base="xs:integer"> <xs:minInclusive value="-1"/> <xs:maxInclusive value="-1"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="nonNegativeDouble"> <xs:restriction base="xs:double"> <xs:minInclusive value="0"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="nonNegativeNonInfiniteDouble"> <xs:restriction base="xs:double"> <xs:minInclusive value="0"/> <xs:maxExclusive value="INF"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="percentage"> <xs:restriction base="xs:double"> <xs:minInclusive value="0"/> <xs:maxInclusive value="100"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="nonNegativeOrInfiniteIntegerOrPercentage"> <xs:union memberTypes="xs:nonNegativeInteger infinity percentage"/> </xs:simpleType> <xs:simpleType name="updowntype"> <xs:restriction base="xs:string"> <xs:enumeration value="up"/> <xs:enumeration value="down"/> </xs:restriction> </xs:simpleType> </xs:schema>