Mercurial > repos > IBDev-IBBoard.WarFoundry.API.Tests
diff testdata/limits/composite-limit.xml @ 54:084049c8dff4
Re #279: Create composite limit
* Add first tests for limit parser - composites are parsed, but children aren't picked up by XPath query yet
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 05 Jun 2010 15:37:03 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testdata/limits/composite-limit.xml Sat Jun 05 15:37:03 2010 +0000 @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default" lang="en"> + <units> + <unit id="Empire1" typeName="Empire General" cat="cat1" points="100" maxNum="1" maxSize="1"> + <equipmentSlots> + <equipmentSlot name="slot"> + <maxLimit> + <compositeMaxLimit> + <sizeConstrainedLimit limit="10"/> + <absoluteLimit limit="5"/> + </compositeMaxLimit> + </maxLimit> + </equipmentSlot> + </equipmentSlots> + </unit> + </units> +</race> \ No newline at end of file