Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 6, 2008, 2:43:12 AM (17 years ago)
Author:
bknecht
Message:

some changes with the script. Made it singleton plus the files were moved into the core.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/script/src/orxonox/core/Loader.cc

    r996 r999  
    3333#include "Debug.h"
    3434#include "CoreIncludes.h"
    35 #include "../script/Script.h"
     35#include "Script.h"
    3636
    3737#include "util/tinyxml/ticpp.h"
     
    110110        // let Lua work this out:
    111111        //Script* lua;
    112         Script::loadFile(level->getFile(), true);
     112        /*Script::loadFile(level->getFile(), true);
    113113        Script::init(Script::getLuaState());
    114         Script::run();
     114        Script::run();*/
     115        Script* lua = Script::getInstance();
    115116
    116117        try
     
    124125            ticpp::Document xmlfile;
    125126            //xmlfile.ToDocument();
    126             xmlfile.Parse(*Script::getFileString(), true);
     127            xmlfile.Parse(lua->getLuaOutput(), true);
    127128
    128129            for ( ticpp::Iterator<ticpp::Element> child = xmlfile.FirstChildElement(false); child != child.end(); child++ )
Note: See TracChangeset for help on using the changeset viewer.