Changeset 999 for code/branches/script/src/orxonox/core/Loader.cc
- Timestamp:
- Apr 6, 2008, 2:43:12 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/script/src/orxonox/core/Loader.cc
r996 r999 33 33 #include "Debug.h" 34 34 #include "CoreIncludes.h" 35 #include " ../script/Script.h"35 #include "Script.h" 36 36 37 37 #include "util/tinyxml/ticpp.h" … … 110 110 // let Lua work this out: 111 111 //Script* lua; 112 Script::loadFile(level->getFile(), true);112 /*Script::loadFile(level->getFile(), true); 113 113 Script::init(Script::getLuaState()); 114 Script::run(); 114 Script::run();*/ 115 Script* lua = Script::getInstance(); 115 116 116 117 try … … 124 125 ticpp::Document xmlfile; 125 126 //xmlfile.ToDocument(); 126 xmlfile.Parse( *Script::getFileString(), true);127 xmlfile.Parse(lua->getLuaOutput(), true); 127 128 128 129 for ( ticpp::Iterator<ticpp::Element> child = xmlfile.FirstChildElement(false); child != child.end(); child++ )
Note: See TracChangeset
for help on using the changeset viewer.