载入中...
搜索中...
未找到
eve::dialogue 命名空间参考

struct  DataValue
 Generic JSON-like value tree used by the Squirrel bridge: dialogue pools and conditions arrive as Squirrel tables and are converted into this structure so the core loader/evaluator stays script-agnostic and unit-testable. 更多...
 
class  Dialogue
 Visual-novel style dialogue stage. Script: dlg <- eve.Dialogue(); 更多...
 

函数

 Module_IMPL (Dialogue, new Dialogue())
 
bool parseDnut (const std::string &source, const std::string &path, DataValue &outRoot, std::string &error)
 

函数说明

◆ Module_IMPL()

eve::dialogue::Module_IMPL ( Dialogue  ,
new   Dialogue() 
)

◆ parseDnut()

bool eve::dialogue::parseDnut ( const std::string &  source,
const std::string &  path,
DataValue outRoot,
std::string &  error 
)

.dnut → pools 表的 C++ 解析器。

把可读的对话内容语法(pool / when 条件分组 / speaker: "文本" / 属性)编译为 Dialogue::loadPoolsFromData 所需的 DataValue 根表,不引入第二套运行时。 失败时 error 形如 "path:行: 信息"。

在文件 DnutParser.cpp469 行定义.

引用了 error.

被这些函数引用 eve::dialogue::Dialogue::loadPoolsFromDnut().