view demos/rpg/maps/town_objects.xml @ 546:8fee2d2286e9

Rewrote the object serializing routines to use a "template" idea for loading an object from disk. This allows for multiple objects to load the same base object template but be unique on the scene AND have different values. Useful for say more than one gold stack on the ground with different gold values. TODO: fix the "spawn" console command.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Thu, 03 Jun 2010 21:35:06 +0000
parents 2e739ae9a8bc
children 69d50e751c9a
line wrap: on
line source

<?xml version='1.0' encoding='UTF-8'?>
<Settings>
  <Module name="objects">
  	<Setting name="objectlist" type="list"> gstack1 ; temple ; Quiller </Setting>
    <Setting name="gstack1" type="dict"> objectname : goldstack ; value : 5000 ; posx : 3.0 ; posy : 3.0 </Setting>
    <Setting name="temple" type="dict"> objectname : templeportal ; dest : level1 ; posx : 3.0 ; posy : -2.0 </Setting>
    <Setting name="Quiller" type="dict"> objectname : quiller ; posx : 1.0 ; posy : 1.0 </Setting>
  </Module>
</Settings>