``` feat(fight): 新增战斗回合Hook机制,实现特定条件下强制结束战斗和随机出手逻辑

This commit is contained in:
1
2025-12-10 18:37:32 +00:00
parent f6043fd9b9
commit 6b534adc07
9 changed files with 54 additions and 7 deletions

View File

@@ -37,7 +37,7 @@ type FightC struct {
rand *rand.Rand
StartTime time.Time
actionChan chan action.BattleActionI // 所有操作统一从这里进入
Round int //回合数
quit chan struct{}
over chan struct{}
First *input.Input
@@ -355,3 +355,7 @@ func (f *FightC) GetOverChan() chan struct{} {
return f.over
}
func (f *FightC) GetOverInfo() info.FightOverInfo {
return f.FightOverInfo
}