- 移除未使用的 SocketHandler_Tomee.go、ai.go、effect_1.go 文件 - 更新 player 包名引用,替换原 service 包 - 调整 TomeeHeader 和相关处理逻辑至 player 包 - 更新各控制器中的 Player 引用为 player 包中的类型 - 移除冗余的 GetPlayer 方法,使用新逻辑
32 lines
402 B
Go
32 lines
402 B
Go
package node
|
|
|
|
// 返回false阻止继续运行
|
|
// 回合开始
|
|
func (this *EffectNode) PreBattleStart() bool {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
// 返回false阻止继续运行
|
|
// 回合开始
|
|
func (this *EffectNode) OnBattleStart() bool {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
//回合结束前
|
|
|
|
func (this *EffectNode) PreBattleEnd() bool {
|
|
return true
|
|
|
|
}
|
|
|
|
//回合结束
|
|
|
|
func (this *EffectNode) OnBattleEnd() bool {
|
|
return true
|
|
|
|
}
|