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
GetAvatarUrl() string
GetHeroId() string
GetHeadFrame() int32
GetPing() int32
SendMsg(proto.Message)
IsOnline() bool

View File

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

View File

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