Files
bl/logic/service/player/ai.go
昔念 026689f3ed ```
feat(cache): 添加复合键缓存操作支持

添加了基于 uint32+string 组合键的缓存操作方法,包括
GetByCompoundKey、SetByCompoundKey、DelByCompoundKey 和
ContainsByCompoundKey 方法,用于处理用户ID和会话ID的组合缓存场景

fix(vscode): 添加 cSpell 配置支持 struc 词汇

refactor(session): 移除过时的会话管理方法

移除了基于单一字符串键的会话管理方法,因为已迁移到使用
复合键的缓存操作方式
```
2026-01-19 18:51:56 +08:00

41 lines
642 B
Go

package player
import (
"blazing/logic/service/fight/info"
"blazing/modules/player/model"
)
type AI_player struct {
baseplayer
petinfo []model.PetInfo //精灵信息
CanCapture int
Prop [6]int8
}
func (p *AI_player) Getfightinfo() info.Fightinfo {
return info.Fightinfo{}
}
func (f *AI_player) SendPack(b []byte) error {
return nil
}
func (f *AI_player) SendPackCmd(_ uint32, _ any) {
//fmt.Println("战斗结束")
}
func (p *AI_player) GetPetInfo() []model.PetInfo {
return p.petinfo
}
func (lw *AI_player) SendLoadPercent(info.LoadPercentOutboundInfo) {
}
func (p *AI_player) CanFight() bool {
return true
}