载入中...
搜索中...
未找到
eve::rpg::SkillDefinition结构体 参考

#include <Skill.h>

Public 成员函数

bool hasTag (const std::string &tag) const
 

Public 属性

std::string id
 
float cooldown = 0.f
 
float castTime = 0.f
 0 = 瞬发
 
std::string targetType = "self"
 
std::vector< SkillCostSpeccosts
 
std::vector< std::string > grantedEffects
 命中/释放后施加给目标的效果 id 列表
 
std::vector< std::string > tags
 
std::unordered_map< std::string, std::string > extra
 游戏自定义附加数据
 

详细描述

在文件 Skill.h24 行定义.

成员函数说明

◆ hasTag()

bool eve::rpg::SkillDefinition::hasTag ( const std::string &  tag) const

在文件 Skill.cpp12 行定义.

引用了 tags.

类成员变量说明

◆ castTime

float eve::rpg::SkillDefinition::castTime = 0.f

0 = 瞬发

在文件 Skill.h27 行定义.

被这些函数引用 eve::rpg::SkillSystem::beginCast().

◆ cooldown

float eve::rpg::SkillDefinition::cooldown = 0.f

在文件 Skill.h26 行定义.

被这些函数引用 eve::rpg::SkillSystem::beginCast().

◆ costs

std::vector<SkillCostSpec> eve::rpg::SkillDefinition::costs

在文件 Skill.h29 行定义.

◆ extra

std::unordered_map<std::string, std::string> eve::rpg::SkillDefinition::extra

游戏自定义附加数据

在文件 Skill.h32 行定义.

◆ grantedEffects

std::vector<std::string> eve::rpg::SkillDefinition::grantedEffects

命中/释放后施加给目标的效果 id 列表

在文件 Skill.h30 行定义.

◆ id

std::string eve::rpg::SkillDefinition::id

在文件 Skill.h25 行定义.

被这些函数引用 eve::rpg::SkillRegistry::loadFromJson() , 以及 eve::rpg::SkillRegistry::registerSkill().

◆ tags

std::vector<std::string> eve::rpg::SkillDefinition::tags

在文件 Skill.h31 行定义.

被这些函数引用 hasTag().

◆ targetType

std::string eve::rpg::SkillDefinition::targetType = "self"

在文件 Skill.h28 行定义.


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