From 3c021120a26f1f818be14e777b910aae759659e7 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 24 Feb 2009 16:56:06 -0500 Subject: Fixed sigencore to use namespaces in sources --- sigencore/RunScript.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'sigencore/RunScript.cpp') diff --git a/sigencore/RunScript.cpp b/sigencore/RunScript.cpp index 13ba699d..a6c11bca 100644 --- a/sigencore/RunScript.cpp +++ b/sigencore/RunScript.cpp @@ -29,7 +29,11 @@ #include #include -Kross::Action* Sigencore::runScript(const QString& name, const Sigcore::Script& script, const ObjectMap& objects, Kross::ActionCollection* collection) +using namespace Sigcore; +using namespace Sigscript; +using namespace Sigencore; + +Kross::Action* Sigencore::runScript(const QString& name, const Script& script, const ObjectMap& objects, Kross::ActionCollection* collection) { Kross::Action* action = new Kross::Action(collection, name); action->setInterpreter(script.interpreter()); @@ -40,9 +44,9 @@ Kross::Action* Sigencore::runScript(const QString& name, const Sigcore::Script& return action; } -Kross::Action* Sigencore::globalScript(Sigscript::GameWrapper* game, const QString& name, const QString& scriptName, const ObjectMap& objects, Kross::ActionCollection* collection) +Kross::Action* Sigencore::globalScript(GameWrapper* game, const QString& name, const QString& scriptName, const ObjectMap& objects, Kross::ActionCollection* collection) { - Sigscript::GlobalScriptWrapper* script = game->globalScript(name); + GlobalScriptWrapper* script = game->globalScript(name); if (script) return runScript(scriptName, script->script(), objects, collection); return NULL; -- cgit