Files
bl/logic/service/common/playeri.go

23 lines
515 B
Go
Raw Normal View History

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)
2025-11-18 20:52:04 +00:00
//SendPack(b []byte) error
2025-11-18 22:16:55 +00:00
Getfightinfo() info.Fightinfo
ItemAdd(ItemId, ItemCnt int64) (result bool)
GetInfo() *model.PlayerInfo
2025-11-18 23:41:31 +00:00
InvitePlayer(PlayerI)
SetFightC(FightI)
2025-11-18 22:16:55 +00:00
QuitFight()
2026-02-14 04:27:57 +08:00
MessWin(bool)
CanFight() errorcode.ErrorCode
SendPackCmd(uint32, any)
}