1
This commit is contained in:
parent
b00e3acff1
commit
a7f64b7063
@ -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
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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值(单位毫秒)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user