annotate testdata/xml-race-factory/extended-requirements.racex @ 155:3725fd449c77

Re #353: Handle unloaded units being referenced outside factory * Add mock factory and use it in tests All tests now pass (including tests that started failing because of unit loading order - triggered by requirement changes)
author IBBoard <dev@ibboard.co.uk>
date Mon, 04 Jul 2011 20:03:47 +0000
parents 1de37b5c8107
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
147
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 <race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:cats="http://ibboard.co.uk/warfoundry/cats" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="Empire" name="Empire" system="default">
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 <categories>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 <cats:cat id="cat1" name="Characters" minPercentage="0" maxPercentage="50" />
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 <cats:cat id="cat2" name="Regiments" minPercentage="25" maxPercentage="100" />
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 <cats:cat id="cat3" name="War Machines" minPercentage="0" maxPercentage="25" />
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 <cats:cat id="cat4" name="Monsters" minPercentage="0" maxPercentage="25" />
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 <cats:cat id="cat5" name="Allies" minPercentage="0" maxPercentage="25" />
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 </categories>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 <units>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 <unit id="Empire1" typeName="Empire General" cat="cat1" points="100">
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 <stats>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 <stat name="M">4</stat>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 <stat name="WS">6</stat>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 <stat name="BS">6</stat>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 <stat name="S">4</stat>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 <stat name="T">4</stat>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18 <stat name="W">3</stat>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19 <stat name="I">6</stat>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20 <stat name="A">4</stat>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
21 <stat name="Ld">9</stat>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
22 </stats>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
23 <requirements>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
24 <requirement requirementName="RequiresAtLeastNUnits" charset="something">
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
25 <data parseAs="text">Empire2</data>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26 <magic>Stuff Here</magic>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27 </requirement>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
28 </requirements>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
29 </unit>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
30 <unit id="Empire2" typeName="Minion" cat="cat1" points="0">
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
31 <stats>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
32 <stat name="M">4</stat>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
33 <stat name="WS">2</stat>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
34 <stat name="BS">2</stat>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
35 <stat name="S">2</stat>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
36 <stat name="T">2</stat>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
37 <stat name="W">1</stat>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
38 <stat name="I">2</stat>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
39 <stat name="A">1</stat>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
40 <stat name="Ld">5</stat>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
41 </stats>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
42 </unit>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
43 </units>
1de37b5c8107 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
44 </race>