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. 更多...
#include <Dialogue.h>
Public 类型 | |
| enum class | Kind { Null , Int , Float , Bool , String , Array , Object } |
Public 成员函数 | |
| const DataValue * | find (const std::string &key) const |
静态 Public 成员函数 | |
| static DataValue | null () |
| static DataValue | integer (long long v) |
| static DataValue | number (double v) |
| static DataValue | boolean (bool v) |
| static DataValue | string (std::string v) |
| static DataValue | array (std::vector< DataValue > v) |
| static DataValue | object (std::vector< std::pair< std::string, DataValue > > v) |
Public 属性 | |
| Kind | kind = Kind::Null |
| long long | i = 0 |
| double | f = 0.0 |
| bool | b = false |
| std::string | s |
| std::vector< DataValue > | arr |
| std::vector< std::pair< std::string, DataValue > > | obj |
详细描述
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.
在文件 Dialogue.h 第 29 行定义.
成员枚举类型说明
◆ Kind
|
strong |
| 枚举值 | |
|---|---|
| Null | |
| Int | |
| Float | |
| Bool | |
| String | |
| Array | |
| Object | |
在文件 Dialogue.h 第 30 行定义.
成员函数说明
◆ array()
◆ boolean()
|
inlinestatic |
◆ find()
|
inline |
◆ integer()
|
inlinestatic |
◆ null()
|
inlinestatic |
在文件 Dialogue.h 第 40 行定义.
◆ number()
|
inlinestatic |
◆ object()
◆ string()
|
inlinestatic |
类成员变量说明
◆ arr
| std::vector<DataValue> eve::dialogue::DataValue::arr |
在文件 Dialogue.h 第 37 行定义.
◆ b
| bool eve::dialogue::DataValue::b = false |
在文件 Dialogue.h 第 35 行定义.
◆ f
| double eve::dialogue::DataValue::f = 0.0 |
在文件 Dialogue.h 第 34 行定义.
◆ i
| long long eve::dialogue::DataValue::i = 0 |
在文件 Dialogue.h 第 33 行定义.
◆ kind
| Kind eve::dialogue::DataValue::kind = Kind::Null |
在文件 Dialogue.h 第 32 行定义.
被这些函数引用 array(), boolean(), integer(), eve::dialogue::Dialogue::loadPoolsFromData(), number(), object() , 以及 string().
◆ obj
| std::vector<std::pair<std::string, DataValue> > eve::dialogue::DataValue::obj |
在文件 Dialogue.h 第 38 行定义.
被这些函数引用 find() , 以及 eve::dialogue::Dialogue::loadPoolsFromData().
◆ s
| std::string eve::dialogue::DataValue::s |
在文件 Dialogue.h 第 36 行定义.
该结构体的文档由以下文件生成:
- src/modules/dialogue/Dialogue.h