载入中...
搜索中...
未找到
McpSceneDirector.cpp 文件参考
#include "devtools/McpSceneDirector.hpp"
#include "common/ScriptError.h"
#include "devtools/McpDevBridge.hpp"
#include "devtools/McpSquirrelJson.hpp"
#include "scripts.h"
#include <squirrel.h>
#include <atomic>
#include <mutex>

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::dev
 

函数

bool eve::dev::runMcpVmSnippet (HSQUIRRELVM vm, const std::string &source, std::string *err)
 Compile and run a transient MCP snippet (no return value). @thread Game-loop / MCP poll thread with an attached VM.
 
std::string eve::dev::callSceneDirectorReturn (HSQUIRRELVM vm, const std::string &snippet, std::string *err)
 Compile+run a snippet that returns a value; serialize it as JSON.
 
bool eve::dev::ensureSceneDirectorInstalled (HSQUIRRELVM vm, std::string *err)
 Convenience overload: allow heavy install immediately (tests / explicit install tool).
 
bool eve::dev::ensureSceneDirectorInstalled (HSQUIRRELVM vm, std::string *err, bool allowHeavyWork)
 Install scene_director.nut into the live VM (idempotent).
 
void eve::dev::flushPendingSceneDirectorInstall (HSQUIRRELVM vm)
 Run a deferred scene_director install on the game/MCP poll thread.
 
bool eve::dev::sceneDirectorInstallPending ()
 Whether a deferred install is waiting for the next poll.
 
std::string eve::dev::sceneDirectorToolError (const std::string &name, const std::string &err)
 Format a scene-director tool failure.