refactor(fight): 重构战斗节点模块并添加效果管理
This commit is contained in:
14
logic/service/fight/battle/node/Active.go
Normal file
14
logic/service/fight/battle/node/Active.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package node
|
||||
|
||||
// 技能效果前
|
||||
func (this *Node) PreActive() func() {
|
||||
|
||||
return this.OnActive() //默认返回,继续执行代码
|
||||
|
||||
}
|
||||
|
||||
// 执行技能效果
|
||||
func (this *Node) OnActive() func() {
|
||||
return nil //返回空,说明这个节点后续没有追加节点
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user