载入中...
搜索中...
未找到

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 DataValuefind (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< DataValuearr
 
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.h29 行定义.

成员枚举类型说明

◆ Kind

enum class eve::dialogue::DataValue::Kind
strong
枚举值
Null 
Int 
Float 
Bool 
String 
Array 
Object 

在文件 Dialogue.h30 行定义.

成员函数说明

◆ array()

static DataValue eve::dialogue::DataValue::array ( std::vector< DataValue v)
inlinestatic

在文件 Dialogue.h65 行定义.

引用了 Array, d, kind , 以及 v.

◆ boolean()

static DataValue eve::dialogue::DataValue::boolean ( bool  v)
inlinestatic

在文件 Dialogue.h53 行定义.

引用了 Bool, d, kind , 以及 v.

◆ find()

const DataValue * eve::dialogue::DataValue::find ( const std::string &  key) const
inline

在文件 Dialogue.h78 行定义.

引用了 obj.

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

◆ integer()

static DataValue eve::dialogue::DataValue::integer ( long long  v)
inlinestatic

在文件 Dialogue.h41 行定义.

引用了 d, Int, kind , 以及 v.

◆ null()

static DataValue eve::dialogue::DataValue::null ( )
inlinestatic

在文件 Dialogue.h40 行定义.

◆ number()

static DataValue eve::dialogue::DataValue::number ( double  v)
inlinestatic

在文件 Dialogue.h47 行定义.

引用了 d, Float, kind , 以及 v.

◆ object()

static DataValue eve::dialogue::DataValue::object ( std::vector< std::pair< std::string, DataValue > >  v)
inlinestatic

在文件 Dialogue.h71 行定义.

引用了 d, kind, Object , 以及 v.

◆ string()

static DataValue eve::dialogue::DataValue::string ( std::string  v)
inlinestatic

在文件 Dialogue.h59 行定义.

引用了 d, kind, String , 以及 v.

类成员变量说明

◆ arr

std::vector<DataValue> eve::dialogue::DataValue::arr

在文件 Dialogue.h37 行定义.

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

◆ b

bool eve::dialogue::DataValue::b = false

在文件 Dialogue.h35 行定义.

◆ f

double eve::dialogue::DataValue::f = 0.0

在文件 Dialogue.h34 行定义.

◆ i

long long eve::dialogue::DataValue::i = 0

在文件 Dialogue.h33 行定义.

◆ kind

Kind eve::dialogue::DataValue::kind = Kind::Null

在文件 Dialogue.h32 行定义.

被这些函数引用 array(), boolean(), integer(), eve::dialogue::Dialogue::loadPoolsFromData(), number(), object() , 以及 string().

◆ obj

std::vector<std::pair<std::string, DataValue> > eve::dialogue::DataValue::obj

在文件 Dialogue.h38 行定义.

被这些函数引用 find() , 以及 eve::dialogue::Dialogue::loadPoolsFromData().

◆ s

std::string eve::dialogue::DataValue::s

在文件 Dialogue.h36 行定义.


该结构体的文档由以下文件生成: