Mercurial > repos > snowblizz-super-API-ideas
changeset 59:3fa4658c50c6
Re #61 - Complete structure of WarFoundry API objects
* Allow units to have zero members to handle meta-units where all members are individuals "contained" by the unit
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Thu, 09 Apr 2009 13:55:46 +0000 |
parents | e53ed2d613a1 |
children | 0c3500fca49d |
files | api/Objects/Army.cs dtds/race.xsd |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/api/Objects/Army.cs Tue Apr 07 15:28:06 2009 +0000 +++ b/api/Objects/Army.cs Thu Apr 09 13:55:46 2009 +0000 @@ -31,7 +31,7 @@ public event DoubleValChangedDelegate PointsValueChanged; private DoubleValChangedDelegate PointsValueChangedMethod; - public Army(Race race, string armyName, int maxArmyPoints) : this(race, armyName, maxArmyPoints, null/*, factory*/) + public Army(Race race, string armyName, int maxArmyPoints) : this(race, armyName, maxArmyPoints, null) { }
--- a/dtds/race.xsd Tue Apr 07 15:28:06 2009 +0000 +++ b/dtds/race.xsd Thu Apr 09 13:55:46 2009 +0000 @@ -37,7 +37,7 @@ <xs:attribute name="points" type="core:nonNegativeNonInfiniteDouble" use="required"/> <xs:attribute name="minNum" type="xs:nonNegativeInteger" default="0"/> <xs:attribute name="maxNum" type="core:positiveOrInfiniteInteger" default="-1"/> - <xs:attribute name="minSize" type="xs:positiveInteger" default="5"/> + <xs:attribute name="minSize" type="xs:nonNegativeInteger" default="5"/> <xs:attribute name="maxSize" type="core:positiveOrInfiniteInteger" default="-1"/> <xs:attribute name="baseSize" type="xs:nonNegativeInteger" default="0"/> </xs:complexType>