1
This commit is contained in:
parent
df02ffb4eb
commit
2bc30cbfc8
@ -271,7 +271,11 @@ func (this *player) CMSetReady(hdr *f5.MsgHdr, msg *cs.CMSetReady) {
|
|||||||
rspMsg.Errcode = proto.Int32(1)
|
rspMsg.Errcode = proto.Int32(1)
|
||||||
rspMsg.Errmsg = proto.String("team already started")
|
rspMsg.Errmsg = proto.String("team already started")
|
||||||
} else {
|
} else {
|
||||||
this.isReady = 1
|
if msg.GetIsReady() != 0 {
|
||||||
|
this.isReady = 1
|
||||||
|
} else {
|
||||||
|
this.isReady = 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.SendMsg(rspMsg)
|
this.SendMsg(rspMsg)
|
||||||
this.GetTeam().SendUpdateNotify()
|
this.GetTeam().SendUpdateNotify()
|
||||||
|
@ -258,6 +258,7 @@ message SMCancel
|
|||||||
//设置状态为已准备
|
//设置状态为已准备
|
||||||
message CMSetReady
|
message CMSetReady
|
||||||
{
|
{
|
||||||
|
optional int32 is_ready = 1; //是否已准备
|
||||||
}
|
}
|
||||||
|
|
||||||
message SMSetReady
|
message SMSetReady
|
||||||
|
@ -240,7 +240,7 @@ func (this *team) genStartGameInfo() {
|
|||||||
startInfo := struct {
|
startInfo := struct {
|
||||||
ZoneId int32 `json:"zone_id"`
|
ZoneId int32 `json:"zone_id"`
|
||||||
NodeId int32 `json:"node_id"`
|
NodeId int32 `json:"node_id"`
|
||||||
MapId int32 `json:"map"`
|
MapId int32 `json:"map_id"`
|
||||||
RoomUuid string `json:"room_uuid"`
|
RoomUuid string `json:"room_uuid"`
|
||||||
StartTime int32 `json:"start_time"`
|
StartTime int32 `json:"start_time"`
|
||||||
TeamList []struct {
|
TeamList []struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user