Changeset 471 for code/branches/FICN/src/loader/LevelLoader.cc
- Timestamp:
- Dec 12, 2007, 2:45:01 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/loader/LevelLoader.cc
r470 r471 3 3 4 4 #include "LevelLoader.h" 5 #include "xml/xmlParser.h" 5 //#include "xml/xmlParser.h" 6 #include "tinyxml/tinyxml.h" 6 7 7 8 using namespace std; … … 15 16 dir.append("/"); 16 17 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 /* 17 33 rootNode = XMLNode::openFileHelper(dir.c_str(),"orxonoxworld"); 18 34 // TODO: Error handling … … 25 41 26 42 loadingScreenNode = rootNode.getChildNode("loading"); 27 28 43 if (!loadingScreenNode.isEmpty()) 29 44 { 30 45 this->showLoadingScreen(); 31 46 } 47 48 worldNode = rootNode.getChildNode("world"); 49 if (!worldNode.isEmpty()) 50 { 51 52 } 53 */ 54 32 55 33 56 /*
Note: See TracChangeset
for help on using the changeset viewer.