载入中...
搜索中...
未找到
eve::rpg::SkillRegistry类 参考
#include <Skill.h>
静态 Public 成员函数 | |
| static void | registerSkill (const SkillDefinition &def) |
| static const SkillDefinition * | find (const std::string &id) |
| static bool | remove (const std::string &id) |
| static void | clear () |
| static int | count () |
| static int | loadFromJson (const std::string &json, std::string *error=nullptr) |
| 从 JSON 数组批量注册技能定义,返回成功注册数量。元素形如: { "id": "fireball", "cooldown": 4, "castTime": 1.2, "targetType": "single", "costs": [{"attribute":"mana","amount":20}], "grantedEffects": ["burning"], "tags": ["fire"], "extra": {"projectile": "fireball_vfx"} } | |
详细描述
成员函数说明
◆ clear()
|
static |
◆ count()
|
static |
◆ find()
|
static |
◆ loadFromJson()
|
static |
从 JSON 数组批量注册技能定义,返回成功注册数量。元素形如: { "id": "fireball", "cooldown": 4, "castTime": 1.2, "targetType": "single", "costs": [{"attribute":"mana","amount":20}], "grantedEffects": ["burning"], "tags": ["fire"], "extra": {"projectile": "fireball_vfx"} }
引用了 eve::json::Value::at(), error, eve::rpg::SkillDefinition::id, eve::json::Value::isArray(), eve::json::Value::isObject(), n, eve::json::Document::parse(), registerSkill(), eve::json::Document::root(), eve::json::Value::size() , 以及 eve::json::Document::valid().
◆ registerSkill()
|
static |
◆ remove()
该类的文档由以下文件生成: