This commit is contained in:
aozhiwei 2024-10-12 15:18:06 +08:00
parent 7c260b04cb
commit 9f10f02d80
2 changed files with 5 additions and 0 deletions

View File

@ -149,6 +149,7 @@ type Player interface {
IsBattling() bool
SetBattling(bool)
GenNextCopy() Player
GetBattleItems() []*BattleItem
}
type PlayerMgr interface {

View File

@ -205,6 +205,10 @@ func (this *player) GenNextCopy() common.Player {
return nextCopy
}
func (this *player) GetBattleItems() []*common.BattleItem {
return this.battleItems
}
func (this *player) FillMFTeamMember(member_pb *cs.MFTeamMember) {
member_pb.AccountId = proto.String(this.accountId)
member_pb.Name = proto.String(this.name)