add loader

add schema
new loader model using xml
separated work and load data
validation using schema
map data in xml
new core model... proecting
This commit is contained in:
2010-08-19 20:52:32 +03:00
parent 87455a622e
commit da42fe8f58
20 changed files with 943 additions and 140 deletions

27
data.xml Normal file
View File

@@ -0,0 +1,27 @@
<!DOCTYPE data>
<ADdata>
<aliens>
<alien speed="0.012" imageType="1" prise="0" id="10" name="my alien" health="100"/>
<alien speed="0.0099" imageType="1" prise="1" id="12" name="MONSTR" health="200" armor="1.5" regeneration="3"/>
</aliens>
<maps>
<map imageType="1" id="1" data="AAAERHicY2BgEGAA4v///0hQgmFmAGlGcjCxZuCTHzUDuxkMDOr85JrBwKC0A8kMJlwYagYOeYgZ+NXgNwMtPEbNINIMIsynOO8DAG0r1Q0=" name="Map 16x16" maxPlayers="2"/>
</maps>
<waves>
<wave id="1" timeout="20000" prise="100"/>
<wave id="2" timeout="20000" prise="200"/>
</waves>
<levels>
<level id="1" map="1" name="First Level"/>
</levels>
<waveParts>
<wavePart wave="1" alien="10" count="4"/>
<wavePart wave="1" alien="12" count="5"/>
<wavePart wave="1" alien="10" count="10"/>
<wavePart wave="2" alien="10" count="9"/>
</waveParts>
<wavesOnLevels>
<waveOnLevel wave="1" level="1"/>
<waveOnLevel level="1" wave="2"/>
</wavesOnLevels>
</ADdata>