|
@@ -26,7 +26,7 @@
|
|
|
#include "r/MainRenderer.h"
|
|
#include "r/MainRenderer.h"
|
|
|
#include "phys/Character.h"
|
|
#include "phys/Character.h"
|
|
|
#include "phys/RigidBody.h"
|
|
#include "phys/RigidBody.h"
|
|
|
-#include "script/ScriptingEngine.h"
|
|
|
|
|
|
|
+#include "script/Engine.h"
|
|
|
#include "core/StdinListener.h"
|
|
#include "core/StdinListener.h"
|
|
|
#include "scene/ModelNode.h"
|
|
#include "scene/ModelNode.h"
|
|
|
#include "rsrc/Model.h"
|
|
#include "rsrc/Model.h"
|
|
@@ -335,7 +335,7 @@ void mainLoopExtra()
|
|
|
if(InputSingleton::get().getKey(SDL_SCANCODE_Y) == 1)
|
|
if(InputSingleton::get().getKey(SDL_SCANCODE_Y) == 1)
|
|
|
{
|
|
{
|
|
|
INFO("Exec script");
|
|
INFO("Exec script");
|
|
|
- ScriptingEngineSingleton::get().execScript(util::readFile("test.py").c_str());
|
|
|
|
|
|
|
+ script::EngineSingleton::get().execScript(util::readFile("test.py").c_str());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
mover->getLocalTransform().getRotation().reorthogonalize();
|
|
mover->getLocalTransform().getRotation().reorthogonalize();
|
|
@@ -512,7 +512,7 @@ void initSubsystems(int argc, char* argv[])
|
|
|
"sys.stdout = StdoutCatcher()\n"
|
|
"sys.stdout = StdoutCatcher()\n"
|
|
|
"sys.stderr = StderrCatcher()\n";
|
|
"sys.stderr = StderrCatcher()\n";
|
|
|
|
|
|
|
|
- ScriptingEngineSingleton::get().execScript(commonPythonCode);
|
|
|
|
|
|
|
+ script::EngineSingleton::get().execScript(commonPythonCode);
|
|
|
|
|
|
|
|
// Stdin listener
|
|
// Stdin listener
|
|
|
StdinListenerSingleton::get().start();
|
|
StdinListenerSingleton::get().start();
|
|
@@ -544,7 +544,7 @@ void execStdinScpripts()
|
|
|
|
|
|
|
|
try
|
|
try
|
|
|
{
|
|
{
|
|
|
- ScriptingEngineSingleton::get().execScript(cmd.c_str(),
|
|
|
|
|
|
|
+ script::EngineSingleton::get().execScript(cmd.c_str(),
|
|
|
"command line input");
|
|
"command line input");
|
|
|
}
|
|
}
|
|
|
catch(Exception& e)
|
|
catch(Exception& e)
|