Changeset 471 for code/branches/FICN/src/loader
- Timestamp:
- Dec 12, 2007, 2:45:01 PM (17 years ago)
- Location:
- code/branches/FICN/src/loader
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/loader/CMakeLists.txt
r376 r471 4 4 SET( LOADER_SRC_FILES 5 5 LevelLoader.cc 6 ../xml/xmlParser.cc 6 #../xml/xmlParser.cc 7 ../tinyxml/tinystr.cc 8 ../tinyxml/tinyxml.cc 9 ../tinyxml/tinyxmlerror.cc 10 ../tinyxml/tinyxmlparser.cc 7 11 ) 8 12 -
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 /* -
code/branches/FICN/src/loader/LevelLoader.h
r470 r471 10 10 11 11 #include "loader_platform.h" 12 #include "xml/xmlParser.h"12 //#include "xml/xmlParser.h" 13 13 14 14 #ifndef __MODULE_LEVELLOADER__ … … 22 22 { 23 23 private: 24 24 /* 25 25 // XML Nodes 26 26 XMLNode rootNode; … … 29 29 XMLNode audioNode; 30 30 XMLNode scriptsNode; 31 31 */ 32 32 // Level information 33 33 std::string name_;
Note: See TracChangeset
for help on using the changeset viewer.