Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 12, 2007, 2:45:01 PM (16 years ago)
Author:
nicolape
Message:

Added tinyxml library

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/loader/LevelLoader.cc

    r470 r471  
    33
    44#include "LevelLoader.h"
    5 #include "xml/xmlParser.h"
     5//#include "xml/xmlParser.h"
     6#include "tinyxml/tinyxml.h"
    67
    78using namespace std;
     
    1516        dir.append("/");
    1617        dir.append(file);       
     18       
     19        TiXmlDocument doc(file);
     20        bool loadOkay = doc.LoadFile();
     21        if (loadOkay)
     22        {
     23
     24        }
     25        else
     26        {
     27                std::string err = "Could not load level file ";
     28                err.append(file);
     29                std::cout << err << std::endl;
     30        }       
     31       
     32        /*
    1733        rootNode = XMLNode::openFileHelper(dir.c_str(),"orxonoxworld");
    1834        // TODO: Error handling
     
    2541 
    2642        loadingScreenNode = rootNode.getChildNode("loading");
    27  
    2843        if (!loadingScreenNode.isEmpty())
    2944        {
    3045                this->showLoadingScreen();
    3146        }
     47
     48        worldNode = rootNode.getChildNode("world");
     49        if (!worldNode.isEmpty())
     50        {
     51               
     52        }
     53        */
     54
    3255 
    3356  /*
Note: See TracChangeset for help on using the changeset viewer.