This commit is contained in:
aozhiwei 2023-09-25 19:24:32 +08:00
parent b00e3acff1
commit a7f64b7063
3 changed files with 7 additions and 0 deletions

View File

@ -28,6 +28,7 @@ type Player interface {
GetName() string GetName() string
GetAvatarUrl() string GetAvatarUrl() string
GetHeroId() string GetHeroId() string
GetHeadFrame() int32
GetPing() int32 GetPing() int32
SendMsg(proto.Message) SendMsg(proto.Message)
IsOnline() bool IsOnline() bool

View File

@ -19,6 +19,7 @@ type player struct {
name string name string
avatarUrl string avatarUrl string
heroId string heroId string
headFrame int32
ping int32 ping int32
} }
@ -86,6 +87,10 @@ func (this *player) GetHeroId() string {
return this.heroId return this.heroId
} }
func (this *player) GetHeadFrame() int32 {
return this.headFrame
}
func (this *player) GetPing() int32 { func (this *player) GetPing() int32 {
return this.ping return this.ping
} }

View File

@ -113,6 +113,7 @@ message MFMember
optional string name = 2; // optional string name = 2; //
optional string avatar_url = 3; // optional string avatar_url = 3; //
optional int32 hero_id = 4; //id optional int32 hero_id = 4; //id
optional int32 head_frame = 5; //
optional int32 state = 9; //0: 1: optional int32 state = 9; //0: 1:
optional int32 ping = 20; //ping值() optional int32 ping = 20; //ping值()
} }