feat(effect): 添加效果系统模块 (#332)
实现 Buff/Debuff 效果管理和属性修改器系统: 核心功能: - 效果容器管理效果的应用、移除和更新 - 支持持续时间类型: 永久/计时/条件 - 支持叠加规则: 刷新/叠加/独立/替换/忽略 - 效果标签系统用于分类和查询 - 效果优先级和互斥标签支持 - 效果事件系统 (应用/移除/叠加/刷新/跳动/过期) 修改器系统: - 属性修改器支持加法/乘法/覆盖/最小值/最大值操作 - 优先级分层计算 (基础/加法/乘法/最终) - 数值计算器自动按优先级应用修改器 蓝图节点 (12个): - ApplyEffect: 应用效果 - RemoveEffect/RemoveEffectByTag: 移除效果 - HasEffect/HasEffectTag: 检查效果 - GetEffectStacks/GetEffectRemainingTime/GetEffectCount: 查询效果 - ClearAllEffects: 清除所有效果 - OnEffectApplied/OnEffectRemoved/OnEffectTick: 效果事件
This commit is contained in:
22
packages/effect/tsconfig.build.json
Normal file
22
packages/effect/tsconfig.build.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"module": "ES2020",
|
||||
"moduleResolution": "bundler",
|
||||
"lib": ["ES2020", "DOM"],
|
||||
"outDir": "./dist",
|
||||
"rootDir": "./src",
|
||||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"skipLibCheck": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"resolveJsonModule": true,
|
||||
"experimentalDecorators": true,
|
||||
"emitDecoratorMetadata": true
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["node_modules", "dist"]
|
||||
}
|
||||
Reference in New Issue
Block a user