This commit is contained in:
aozhiwei 2024-04-20 10:54:25 +08:00
parent e9a0e5b098
commit 8557cf5062
2 changed files with 6 additions and 0 deletions

View File

@ -150,6 +150,7 @@ type Player interface {
FillMFTeamMember(*cs.MFTeamMember) FillMFTeamMember(*cs.MFTeamMember)
GetSortIdx() int32 GetSortIdx() int32
SetSortIdx(int32) SetSortIdx(int32)
IsBattling() bool
GenNextCopy() Player GenNextCopy() Player
} }

View File

@ -38,6 +38,7 @@ type player struct {
totalLucky int64 totalLucky int64
hero hero hero hero
team common.Team team common.Team
battling bool
sortIdx int32 sortIdx int32
} }
@ -541,6 +542,10 @@ func (this *player) CMGrantInvitePermission(hdr *f5.MsgHdr, msg *cs.CMGrantInvit
this.GetTeam().SendUpdateNotify() this.GetTeam().SendUpdateNotify()
} }
func (this *player) IsBattling() bool {
return this.battling
}
func newPlayer() *player { func newPlayer() *player {
hum := new(player) hum := new(player)
return hum return hum