comparison 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
comparison
equal deleted inserted replaced
545:bc7e3c3122d7 546:8fee2d2286e9
1 <?xml version='1.0' encoding='UTF-8'?> 1 <?xml version='1.0' encoding='UTF-8'?>
2 <Settings> 2 <Settings>
3 <Module name="models"> 3 <Module name="models">
4 <Setting name="Player" type="dict"> type : ITEM ; file : objects/actors/player/warrior/object.xml ; model : goldstack </Setting> 4 <Setting name="Player" type="dict"> file : objects/actors/player/warrior/object.xml ; model : goldstack </Setting>
5 <Setting name="GoldStack" type="dict"> type : GOLD ; file : objects/items/goldstack/object.xml ; model : goldstack </Setting> 5 <Setting name="GoldStack" type="dict"> file : objects/items/goldstack/object.xml ; model : goldstack </Setting>
6 <Setting name="Quiller" type="dict"> type : QUESTGIVER ; file : objects/actors/player/warrior/object.xml ; model : warrior </Setting> 6 <Setting name="Quiller" type="dict"> file : objects/actors/player/warrior/object.xml ; model : warrior </Setting>
7 <Setting name="TempleEntrance" type="dict"> type : PORTAL ; file : objects/ground/temple_entrance/object.xml ; model : temple_entrance </Setting> 7 <Setting name="TempleEntrance" type="dict"> file : objects/ground/temple_entrance/object.xml ; model : temple_entrance </Setting>
8 </Module> 8 </Module>
9 9
10 <Module name="Quiller"> 10 <Module name="objects">
11 <Setting name="questcount" type="int"> 2 </Setting> 11 <Setting name="goldstack" type="dict"> type : GOLD ; modelname : GoldStack ; value : 5000 </Setting>
12 <Setting name="quest1" type="dict"> type : RETURN_ITEM ; name : Test quest ; desc : This is the first quest you will get ; items : GoldStack ; value : 5000 </Setting> 12 <Setting name="templeportal" type="dict"> type : PORTAL ; modelname : TempleEntrance ; dest : town </Setting>
13 <Setting name="quest2" type="dict"> type : RETURN_ITEM ; name : Second quest ; desc : This is the second quest you will get ; items : GoldStack ; value : 5000 </Setting> 13 <Setting name="quiller" type="dict"> type : QUESTGIVER ; modelname : Quiller ; stat1 : 20 ; stat2 : 343 </Setting>
14 </Module> 14 </Module>
15 </Settings> 15 </Settings>