view demos/rpg/maps/allobjects.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 67f6f3538e88
children f85762e634c5
line wrap: on
line source

<?xml version='1.0' encoding='UTF-8'?>
<Settings>
  <Module name="models">
    <Setting name="Player" type="dict"> file : objects/actors/player/warrior/object.xml ; model : goldstack </Setting>
    <Setting name="GoldStack" type="dict"> file : objects/items/goldstack/object.xml ; model : goldstack </Setting>
    <Setting name="Quiller" type="dict"> file : objects/actors/player/warrior/object.xml ; model : warrior </Setting>
	<Setting name="TempleEntrance" type="dict"> file : objects/ground/temple_entrance/object.xml ; model : temple_entrance </Setting>
  </Module>
  
  <Module name="objects">
    <Setting name="goldstack" type="dict"> type : GOLD ; modelname : GoldStack ; value : 5000 </Setting>
    <Setting name="templeportal" type="dict"> type : PORTAL ; modelname : TempleEntrance ; dest : town </Setting>
    <Setting name="quiller" type="dict"> type : QUESTGIVER ; modelname : Quiller ; stat1 : 20 ; stat2 : 343 </Setting>
  </Module>
</Settings>