This commit is contained in:
aozhiwei 2024-03-12 10:58:06 +08:00
parent 1cb3f33c45
commit 7204cfe4a1
2 changed files with 6 additions and 1 deletions

View File

@ -28,6 +28,7 @@ type TeamMgr interface {
type Player interface {
GetSocket() f5.WspCliConn
SendMsg(proto.Message)
GetAccountId() string
GetSessionId() string
GetZoneId() int32
@ -37,9 +38,9 @@ type Player interface {
GetHeroId() string
GetHeadFrame() string
GetPing() int32
SendMsg(proto.Message)
IsOnline() bool
GetTeam() Team
FillMFTeamMember(*cs.MFTeamMember)
}
type PlayerMgr interface {

View File

@ -125,6 +125,10 @@ func (this *player) GetTeam() common.Team {
return this.team
}
func (this *player) FillMFTeamMember(team_pb *cs.MFTeamMember) {
}
func (this *player) CMLeaveTeam(hdr *f5.MsgHdr, msg *cs.CMLeaveTeam) {
}