This commit is contained in:
aozhiwei 2024-03-13 20:22:28 +08:00
parent 1431ccc2a0
commit c1d413c169
2 changed files with 5 additions and 0 deletions

View File

@ -72,6 +72,7 @@ type Player interface {
GetTeam() Team
SetTeam(Team)
FillMFTeamMember(*cs.MFTeamMember)
GetSortIdx() int32
}
type PlayerMgr interface {

View File

@ -127,6 +127,10 @@ func (this *player) SetTeam(team common.Team) {
this.team = team
}
func (this *player) GetSortIdx() int32 {
return 0
}
func (this *player) FillMFTeamMember(member_pb *cs.MFTeamMember) {
member_pb.AccountId = proto.String(this.accountId)
member_pb.Name = proto.String(this.name)