refactor(fight): 重构战斗节点模块并添加效果管理

This commit is contained in:
1
2025-08-26 18:02:32 +00:00
parent 5c8f5195cf
commit e3184646e4
8 changed files with 125 additions and 46 deletions

View File

@@ -0,0 +1,14 @@
package node
// 技能效果前
func (this *Node) PreActive() func() {
return this.OnActive() //默认返回,继续执行代码
}
// 执行技能效果
func (this *Node) OnActive() func() {
return nil //返回空,说明这个节点后续没有追加节点
}