载入中...
搜索中...
未找到
McpSceneDirector.hpp 文件参考

Shared helpers for MCP tools that drive the embedded scene_director kit. 更多...

#include "common/Export.h"
#include <squirrel.h>
#include <string>

浏览源代码.

命名空间

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, bool allowHeavyWork)
 Install scene_director.nut into the live VM (idempotent).
 
bool eve::dev::ensureSceneDirectorInstalled (HSQUIRRELVM vm, std::string *err)
 Convenience overload: allow heavy install immediately (tests / explicit install tool).
 
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.
 

详细描述

Shared helpers for MCP tools that drive the embedded scene_director kit.

在文件 McpSceneDirector.hpp 中定义.