Files
bl/logic/service/common/playeri.go
xinian d83cf365ac
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
更新说明
2026-04-05 23:13:06 +08:00

27 lines
721 B
Go

package common
import (
"blazing/common/socket/errorcode"
"blazing/logic/service/fight/info"
space "blazing/logic/service/space/info"
"blazing/modules/player/model"
)
// PlayerI 定义战斗与 common 服务依赖的最小玩家能力接口。
type PlayerI interface {
ApplyPetDisplayInfo(*space.SimpleInfo)
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)
GetPetInfo(limitlevel uint32) []model.PetInfo
}