``` feat(fight): 新增战斗回合Hook机制,实现特定条件下强制结束战斗和随机出手逻辑
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user