16#include <unordered_map>
36 std::vector<std::string>
tags;
37 std::unordered_map<std::string, std::string>
extra;
40 bool hasTag(
const std::string &
tag)
const;
42 std::string getExtra(
const std::string &
key,
const std::string &fallback = {})
const;
58 static bool remove(
const std::string &
id);
69 static int loadFromJson(
const std::string &json, std::string *
error =
nullptr);
#define EVENGINE_API_PLATFORM
Share string attribute map operations through the Windows Foundation DLL.
RPG 模块的基础实体:把属性 / 状态 / 技能三张表挂到一个 ECS 实体上。
std::unordered_map< std::string, std::string > extra
std::vector< TraitSpec > traits
std::vector< std::string > tags
std::string kind
"paramRate" | "elementRate" | "stateRate" | "stateResist" | "exParam" | "attackElement" | "attackStat...
std::string target
目标名(参数/元素/状态/exParam 名);部分 kind 可空。
double value
倍率或加值;攻击次数为整数加值,其它多为倍率。