Mercurial > fife-parpg
view demos/rpg/maps/allobjects.xml @ 567:9152ed2b5bb8
Created SimpleXMLSerializer which makes loading and saving variables to an XML file simple. In the process I removed the the XML code from the Settings class. It now uses SimpleXMLSerializer to load and save settings.
I have also updated the RPG demo to use the SimpleXMLSerializer for loading and saving game specific data.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 28 Jun 2010 18:41:23 +0000 |
parents | f85762e634c5 |
children |
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 </Setting> <Setting name="signenemy1" type="dict"> type : ENEMY ; modelname : Quiller </Setting> </Module> </Settings>