1
0
forked from 0ad/0ad

Convert footprint data in entity templates

This was SVN commit r7292.
This commit is contained in:
Ykkrosh 2010-01-29 21:07:15 +00:00
parent 92df4d1793
commit a0ae9062d3
75 changed files with 308 additions and 0 deletions

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>structures/fndn_1x1.xml</Actor>
</VisualActor>
<Footprint>
<Square width="6.0" depth="6.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>structures/fndn_2x2.xml</Actor>
</VisualActor>
<Footprint>
<Square width="9.0" depth="9.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>structures/fndn_3x3.xml</Actor>
</VisualActor>
<Footprint>
<Square width="13.0" depth="13.0"/>
<Height>4.0</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>structures/fndn_3x6.xml</Actor>
</VisualActor>
<Footprint>
<Square width="17.5" depth="30.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>structures/fndn_4x4.xml</Actor>
</VisualActor>
<Footprint>
<Square width="18.0" depth="18.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>structures/fndn_5x5.xml</Actor>
</VisualActor>
<Footprint>
<Square width="24.0" depth="24.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>structures/fndn_6x6.xml</Actor>
</VisualActor>
<Footprint>
<Square width="32.0" depth="32.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>structures/plot_field_found.xml</Actor>
</VisualActor>
<Footprint>
<Square width="10.0" depth="10.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>structures/fndn_theatron.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="26.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>fauna/bear.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="1.3"/>
<Height>3.5</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>fauna/boar.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="1.0"/>
<Height>3.5</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>fauna/chicken.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="0.5"/>
<Height>1.5</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>fauna/elephant.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="2.5"/>
<Height>3.5</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>fauna/elephant_african_bush.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="3.0"/>
<Height>3.5</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>fauna/elephant_african_baby.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="1.5"/>
<Height>1.5</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>fauna/elephant_african_forest.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="2.5"/>
<Height>3.0</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>fauna/goat.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="1.0"/>
<Height>2.5</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>fauna/lion.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="1.2"/>
<Height>2.5</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>fauna/muskox.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="1.5"/>
<Height>2.5</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>fauna/rabbit1.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="0.75"/>
<Height>1.0</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>fauna/tiger.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="1.2"/>
<Height>2.5</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>fauna/walrus.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="2.3"/>
<Height>2.5</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>fauna/wolf.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="1.0"/>
<Height>2.5</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>fauna/wolf_snow.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="1.0"/>
<Height>2.5</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>fauna/zebra.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="1.8"/>
<Height>1.8</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>props/flora/bush_tempe_a.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="3.0"/>
<Height>3.0</Height>
</Footprint>
</Entity>

View File

@ -7,4 +7,8 @@
<VisualActor>
<Actor>flora/trees/baobab.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="2.5"/>
<Height>10.0</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>geology/stonemine_desert_small.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="4.25"/>
<Height>4.0</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>geology/stonemine_savanna_small.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="4.25"/>
<Height>4.0</Height>
</Footprint>
</Entity>

View File

@ -10,4 +10,8 @@
<VisualActor>
<Actor>structures/celts/fortress_briton.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="8.0"/>
<Height>16.0</Height>
</Footprint>
</Entity>

View File

@ -10,4 +10,8 @@
<VisualActor>
<Actor>structures/celts/special.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="8.0"/>
<Height>6.0</Height>
</Footprint>
</Entity>

View File

@ -7,4 +7,8 @@
<VisualActor>
<Actor>structures/hellenes/special_gym.xml</Actor>
</VisualActor>
<Footprint>
<Square width="22.0" depth="24.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>structures/hellenes/temple_new.xml</Actor>
</VisualActor>
<Footprint>
<Square width="17.5" depth="30.0"/>
<Height>12.0</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<VisualActor>
<Actor>structures/hellenes/special_theatre.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="26.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -7,4 +7,8 @@
<VisualActor>
<Actor>structures/hellenes/tholos.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="10.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -3,4 +3,5 @@
<Identity>
<GenericName>Gaia</GenericName>
</Identity>
<Obstruction/>
</Entity>

View File

@ -3,4 +3,8 @@
<Identity>
<GenericName>Generic Flora</GenericName>
</Identity>
<Footprint>
<Circle radius="1.5"/>
<Height>10.0</Height>
</Footprint>
</Entity>

View File

@ -3,4 +3,8 @@
<Identity>
<GenericName>Bush</GenericName>
</Identity>
<Footprint>
<Circle radius="1.0"/>
<Height>1.0</Height>
</Footprint>
</Entity>

View File

@ -3,4 +3,8 @@
<Identity>
<GenericName>Generic Geology</GenericName>
</Identity>
<Footprint>
<Circle radius="3.5"/>
<Height>3.5</Height>
</Footprint>
</Entity>

View File

@ -4,4 +4,5 @@
<GenericName>Structure</GenericName>
<IconSheet>PortraitSheet</IconSheet>
</Identity>
<Obstruction/>
</Entity>

View File

@ -7,4 +7,8 @@
<Cost>
<PopulationBonus>10</PopulationBonus>
</Cost>
<Footprint>
<Square width="32.0" depth="32.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -7,4 +7,8 @@
<Cost>
<PopulationBonus>5</PopulationBonus>
</Cost>
<Footprint>
<Square width="9.0" depth="9.0"/>
<Height>5.0</Height>
</Footprint>
</Entity>

View File

@ -7,4 +7,8 @@
<Cost>
<PopulationBonus>5</PopulationBonus>
</Cost>
<Footprint>
<Square width="12.0" depth="12.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -4,4 +4,8 @@
<GenericName>Outpost</GenericName>
<IconCell>53</IconCell>
</Identity>
<Footprint>
<Square width="6.0" depth="6.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -4,4 +4,8 @@
<GenericName>Wall</GenericName>
<IconCell>54</IconCell>
</Identity>
<Footprint>
<Square width="6.0" depth="6.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -4,4 +4,8 @@
<GenericName>Gate</GenericName>
<IconCell>56</IconCell>
</Identity>
<Footprint>
<Square width="6.0" depth="6.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -4,4 +4,8 @@
<GenericName>Tower</GenericName>
<IconCell>55</IconCell>
</Identity>
<Footprint>
<Square width="6.0" depth="6.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -4,4 +4,8 @@
<GenericName>Farmstead</GenericName>
<IconCell>49</IconCell>
</Identity>
<Footprint>
<Square width="12.0" depth="12.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -4,4 +4,8 @@
<GenericName>Market</GenericName>
<IconCell>60</IconCell>
</Identity>
<Footprint>
<Square width="17.0" depth="17.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -4,4 +4,8 @@
<GenericName>Mill</GenericName>
<IconCell>52</IconCell>
</Identity>
<Footprint>
<Square width="12.0" depth="12.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<IconSheet>PortraitSheetSpecial</IconSheet>
<IconCell>1</IconCell>
</Identity>
<Footprint>
<Square width="32.0" depth="32.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -7,4 +7,8 @@
<Cost>
<PopulationBonus>5</PopulationBonus>
</Cost>
<Footprint>
<Square width="17.0" depth="17.0"/>
<Height>5.0</Height>
</Footprint>
</Entity>

View File

@ -7,4 +7,8 @@
<Cost>
<PopulationBonus>5</PopulationBonus>
</Cost>
<Footprint>
<Square width="18.0" depth="18.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -7,4 +7,8 @@
<Cost>
<PopulationBonus>10</PopulationBonus>
</Cost>
<Footprint>
<Square width="24.0" depth="24.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -4,4 +4,8 @@
<GenericName>Corral</GenericName>
<IconCell>51</IconCell>
</Identity>
<Footprint>
<Square width="9.5" depth="19.75"/>
<Height>5.0</Height>
</Footprint>
</Entity>

View File

@ -4,4 +4,8 @@
<GenericName>Field</GenericName>
<IconCell>50</IconCell>
</Identity>
<Footprint>
<Square width="10.0" depth="10.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -4,4 +4,8 @@
<GenericName>Special Building</GenericName>
<IconCell>62</IconCell>
</Identity>
<Footprint>
<Square width="24.0" depth="24.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -8,4 +8,8 @@
<Cost>
<Population>1</Population>
</Cost>
<Footprint>
<Circle radius="0.5"/>
<Height>2.5</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
<Cost>
<Population>2</Population>
</Cost>
<Footprint>
<Circle radius="1.2"/>
<Height>7.5</Height>
</Footprint>
</Entity>

View File

@ -5,4 +5,8 @@
<IconSheet>PortraitSheetAnimal</IconSheet>
<IconCell>0</IconCell>
</Identity>
<Footprint>
<Circle radius="1.0"/>
<Height>2.5</Height>
</Footprint>
</Entity>

View File

@ -3,4 +3,8 @@
<Identity>
<GenericName>Ship</GenericName>
</Identity>
<Footprint>
<Square width="6.0" depth="30.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -7,4 +7,8 @@
<Cost>
<Population>2</Population>
</Cost>
<Footprint>
<Circle radius="1.2"/>
<Height>5.0</Height>
</Footprint>
</Entity>

View File

@ -6,4 +6,8 @@
</Identity>
<Cost>
</Cost>
<Footprint>
<Circle radius="0.5"/>
<Height>2.5</Height>
</Footprint>
</Entity>

View File

@ -5,4 +5,8 @@
</Identity>
<Cost>
</Cost>
<Footprint>
<Circle radius="0.5"/>
<Height>2.5</Height>
</Footprint>
</Entity>

View File

@ -9,4 +9,8 @@
<VisualActor>
<Actor>units/celts/cavalry_spearman_b.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="0.6"/>
<Height>3.0</Height>
</Footprint>
</Entity>

View File

@ -11,4 +11,8 @@
<VisualActor>
<Actor>units/celts/boudicca_chariot.xml</Actor>
</VisualActor>
<Footprint>
<Square width="2.5" depth="5.0"/>
<Height>5.0</Height>
</Footprint>
</Entity>

View File

@ -11,4 +11,8 @@
<VisualActor>
<Actor>units/celts/cynvelin_horse.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="1.4"/>
<Height>2.5</Height>
</Footprint>
</Entity>

View File

@ -7,4 +7,8 @@
<VisualActor>
<Actor>structures/celts/merchant.xml</Actor>
</VisualActor>
<Footprint>
<Square width="6.0" depth="12.0"/>
<Height>6.0</Height>
</Footprint>
</Entity>

View File

@ -8,4 +8,8 @@
<VisualActor>
<Actor>structures/celts/trireme.xml</Actor>
</VisualActor>
<Footprint>
<Square width="7.0" depth="18.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -11,4 +11,8 @@
<VisualActor>
<Actor>units/celts/super_unit_4.xml</Actor>
</VisualActor>
<Footprint>
<Square width="1.0" depth="7.0"/>
<Height>5.0</Height>
</Footprint>
</Entity>

View File

@ -7,4 +7,8 @@
<VisualActor>
<Actor>units/celts/trader.xml</Actor>
</VisualActor>
<Footprint>
<Circle radius="1.0"/>
<Height>3.0</Height>
</Footprint>
</Entity>

View File

@ -8,4 +8,8 @@
<VisualActor>
<Actor>units/hellenes/siege_rock.xml</Actor>
</VisualActor>
<Footprint>
<Square width="3.5" depth="8.0"/>
<Height>3.5</Height>
</Footprint>
</Entity>

View File

@ -8,4 +8,8 @@
<VisualActor>
<Actor>units/hellenes/siege_spear.xml</Actor>
</VisualActor>
<Footprint>
<Square width="2.0" depth="4.0"/>
<Height>2.0</Height>
</Footprint>
</Entity>

View File

@ -7,4 +7,8 @@
<VisualActor>
<Actor>structures/hellenes/bireme.xml</Actor>
</VisualActor>
<Footprint>
<Square width="6.0" depth="30.0"/>
<Height>8.0</Height>
</Footprint>
</Entity>

View File

@ -96,6 +96,24 @@ sub convert {
$out .= qq{$i</VisualActor>\n};
}
if ($data->{Traits}[0]{Footprint}) {
$out .= qq{$i<Footprint>\n};
if ($data->{Traits}[0]{Footprint}[0]{Radius}) {
$out .= qq{$i$i<Circle radius="$data->{Traits}[0]{Footprint}[0]{Radius}[0]"/>\n};
}
if ($data->{Traits}[0]{Footprint}[0]{Width}) {
$out .= qq{$i$i<Square width="$data->{Traits}[0]{Footprint}[0]{Width}[0]" depth="$data->{Traits}[0]{Footprint}[0]{Depth}[0]"/>\n};
}
if ($data->{Traits}[0]{Footprint}[0]{Height}) {
$out .= qq{$i$i<Height>$data->{Traits}[0]{Footprint}[0]{Height}[0]</Height>\n};
}
$out .= qq{$i</Footprint>\n};
}
if ($name =~ /^template_(structure|gaia)$/) {
$out .= qq{$i<Obstruction/>\n};
}
if ($data->{Actions}[0]{Create}[0]{List}[0]{StructCiv} or $data->{Actions}[0]{Create}[0]{List}[0]{StructMil}) {
$out .= qq{$i<Builder>\n};
$out .= qq{$i$i<Entities datatype="tokens">\n};