1 | | We create our levels with XML, so we need a parser to load everything we want (ints, floats, strings, classes, subclasses, subsubclasses, ...). Look at the old implementation, I think we can adobt much. Don't forget: It has to cooperate with Ogre (which already has resource loading functions). |
| 1 | == Introduction == |
| 2 | |
| 3 | [[Image(xml-xsl.jpg, nolink, border=1, right, width=200px)]] |
| 4 | We need to load levels and save games. Find a way to load and pars XML files in the loading phase of each level. |
| 5 | |
| 6 | == Goal == |
| 7 | We want to load (and save) whole levels with every attribute of every object in the level set. We use XML and its structure to create such levels. |
| 8 | |
| 9 | == Implementation == |
| 10 | You will not have to implement a parser. There are enough parsers out there and there might even be one included in Ogre. Work close to the Ogre implementation of loading resources. You will be able to adopt a lot from Ogre and the old Orxonox. Also find a way to separate the data to be loaded with the actual game loading the data. |