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

SkillDefinition public API. 更多...

#include <Skill.h>

Public 成员函数

bool hasTag (const std::string &tag) const
 True when tag.
 

Public 属性

std::string id
 
float cooldown = 0.f
 
float castTime = 0.f
 0 = 瞬发
 
std::string targetType = "self"
 
std::optional< eve::resource::CostSpec > cost
 Canonical resource cost; AttributeSet is an adapter, not a second cost model.
 
std::vector< std::string > grantedEffects
 命中/释放后施加给目标的效果 id 列表
 
std::vector< std::string > tags
 
eve::decision::Condition castCondition
 Side-effect-free condition tree required before this skill can cast.
 
std::unordered_map< std::string, std::string > extra
 游戏自定义附加数据
 

详细描述

SkillDefinition public API.

在文件 Skill.h 第 28 行定义.

成员函数说明

◆ hasTag()

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

True when tag.

在文件 Skill.cpp 第 61 行定义.

引用了 tag , 以及 tags.

被这些函数引用 eve::rpg::SkillConditionContext::hasTag().

类成员变量说明

◆ castCondition

eve::decision::Condition eve::rpg::SkillDefinition::castCondition

Side-effect-free condition tree required before this skill can cast.

在文件 Skill.h 第 38 行定义.

被这些函数引用 eve::rpg::SkillSystem::canCast() , 以及 eve::rpg::SkillActionAdapter::makeDefinition().

◆ castTime

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

0 = 瞬发

在文件 Skill.h 第 31 行定义.

被这些函数引用 eve::rpg::SkillSystem::beginCast() , 以及 eve::rpg::SkillActionAdapter::makeDefinition().

◆ cooldown

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

在文件 Skill.h 第 30 行定义.

被这些函数引用 eve::rpg::SkillSystem::beginCast() , 以及 eve::rpg::SkillActionAdapter::makeDefinition().

◆ cost

std::optional<eve::resource::CostSpec> eve::rpg::SkillDefinition::cost

Canonical resource cost; AttributeSet is an adapter, not a second cost model.

在文件 Skill.h 第 34 行定义.

被这些函数引用 eve::rpg::SkillActionAdapter::makeDefinition().

◆ extra

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

游戏自定义附加数据

在文件 Skill.h 第 39 行定义.

◆ grantedEffects

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

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

在文件 Skill.h 第 35 行定义.

被这些函数引用 eve::rpg::SkillActionAdapter::makeDefinition().

◆ id

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

◆ tags

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

在文件 Skill.h 第 36 行定义.

被这些函数引用 hasTag().

◆ targetType

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

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