载入中...
搜索中...
未找到
TraitSystem.h 文件参考

特征系统:施加/移除运行时特征,并提供耐性/特殊参数/攻击附加等查询。 更多...

#include <string>
#include <vector>
#include "common/Export.h"

浏览源代码.

类

class  eve::rpg::TraitSystem
 特征系统。 @thread 调用线程应与 RPGActor 的 ECS 线程一致。 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::rpg
 RPG 模块的基础实体:把属性 / 状态 / 技能三张表挂到一个 ECS 实体上。
 

详细描述

特征系统:施加/移除运行时特征,并提供耐性/特殊参数/攻击附加等查询。

特征定义见 Trait.h(TraitRegistry)。paramRate 会在施加时把倍率转为 属性修改器(source="trait:<instanceId>")落到对应参数;其它 kind 按需计算: elementRate/stateRate 取倍率乘积,exParam 取加值,attackElement/attackState 返回标签列表,stateResist 判定免疫。战斗/结算系统通过这些查询读取特征效果。

在文件 TraitSystem.h 中定义.