实现 Buff/Debuff 效果管理和属性修改器系统: 核心功能: - 效果容器管理效果的应用、移除和更新 - 支持持续时间类型: 永久/计时/条件 - 支持叠加规则: 刷新/叠加/独立/替换/忽略 - 效果标签系统用于分类和查询 - 效果优先级和互斥标签支持 - 效果事件系统 (应用/移除/叠加/刷新/跳动/过期) 修改器系统: - 属性修改器支持加法/乘法/覆盖/最小值/最大值操作 - 优先级分层计算 (基础/加法/乘法/最终) - 数值计算器自动按优先级应用修改器 蓝图节点 (12个): - ApplyEffect: 应用效果 - RemoveEffect/RemoveEffectByTag: 移除效果 - HasEffect/HasEffectTag: 检查效果 - GetEffectStacks/GetEffectRemainingTime/GetEffectCount: 查询效果 - ClearAllEffects: 清除所有效果 - OnEffectApplied/OnEffectRemoved/OnEffectTick: 效果事件
25 lines
795 B
JSON
25 lines
795 B
JSON
{
|
|
"id": "effect",
|
|
"name": "@esengine/effect",
|
|
"globalKey": "effect",
|
|
"displayName": "Effect System",
|
|
"description": "效果系统,支持持续时间、叠加规则和属性修改器 | Effect system with duration, stacking rules, and attribute modifiers",
|
|
"version": "1.0.0",
|
|
"category": "Gameplay",
|
|
"icon": "Sparkles",
|
|
"tags": ["effect", "buff", "debuff", "modifier", "status"],
|
|
"isCore": false,
|
|
"defaultEnabled": true,
|
|
"isEngineModule": true,
|
|
"canContainContent": false,
|
|
"platforms": ["web", "desktop"],
|
|
"dependencies": ["core"],
|
|
"exports": {
|
|
"components": ["EffectContainer"],
|
|
"systems": ["EffectSystem"]
|
|
},
|
|
"requiresWasm": false,
|
|
"outputPath": "dist/index.js",
|
|
"pluginExport": "EffectPlugin"
|
|
}
|