I think this engine would GREATLY benefit from a strong XML schema design.
For example, a build menu for a unit:
Code: Select all
<menuentries buildmenu="ARMLAB">
<menuentry menu="1" button="1" unitname="ARMFLEA"/>
<menuentry menu="1" button="2" unitname="ARMCK"/>
<menuentry menu="1" button="3" unitname="ARMBLAH"/>
</menuentries>
Code: Select all
<map>
<settings>
<description>En karta</description>
<tidal>20</tidal>
<gravity>100</gravity>
<maxmetal>0.02</maxmetal>
etc...
</settings>
<atmosphere>
etc
</atmosphere>
<water>
etc
</water>
<light>
etc
</light>
<teams>
<team id=0 startx="3500" startz="2500"/>
<team id=1 startx="5200" startz="7000"/>
etc...
</teams>
</map>
-Buggi