Files
bl/logic/service/common/playeri.go
昔念 55a5534777
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
```
feat(fight_pvp_king): 新增宠物王者对战模式支持

- 添加战斗类型11的处理逻辑,支持单人模式
- 验证宠物类型与对战类型的匹配性
- 根据战斗结果发放相应奖励物品
- 增加ItemAdd接口用于物品添加功能
- 扩展PetInfo结构体增加战斗类型字段
```
2026-03-04 20:21:02 +08:00

23 lines
515 B
Go

package common
import (
"blazing/common/socket/errorcode"
"blazing/logic/service/fight/info"
"blazing/modules/player/model"
)
type PlayerI interface {
GetPlayerCaptureContext() *info.PlayerCaptureContext
Roll(int, int) (bool, float64, float64)
//SendPack(b []byte) error
Getfightinfo() info.Fightinfo
ItemAdd(ItemId, ItemCnt int64) (result bool)
GetInfo() *model.PlayerInfo
InvitePlayer(PlayerI)
SetFightC(FightI)
QuitFight()
MessWin(bool)
CanFight() errorcode.ErrorCode
SendPackCmd(uint32, any)
}