From 9bb7891efbf9af34e15d5a100664b5d8c8294ddf Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 10 Aug 2020 11:37:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=96=AD=E7=BA=BF=E9=87=8D?= =?UTF-8?q?=E8=BF=9E=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/tools/protobuild/cs_msgid.proto | 2 ++ server/tools/protobuild/cs_proto.proto | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/server/tools/protobuild/cs_msgid.proto b/server/tools/protobuild/cs_msgid.proto index 757acc8..42686a3 100644 --- a/server/tools/protobuild/cs_msgid.proto +++ b/server/tools/protobuild/cs_msgid.proto @@ -6,6 +6,7 @@ enum CMMessageId_e _CMPing = 101; _CMJoin = 103; + _CMReconnect = 104; _CMMove = 201; _CMEmote = 204; _CMVoice = 206; @@ -23,6 +24,7 @@ enum SMMessageId_e { _SMPing = 101; _SMRpcError = 102; + _SMReconnect = 104; _SMWatchWar = 208; _SMLeave = 209; diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index 3275ea6..d743aad 100755 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -736,6 +736,23 @@ message CMJoin optional int32 room_mode = 52; //0:吃鸡模式 1:僵尸模式 } +//断线重连 +message CMReconnect +{ + optional int32 server_id = 1; //保留 + optional string team_uuid = 2; //保留 + optional string account_id = 3; //账号id + optional string room_uuid = 4; //房间唯一id + optional string server_info = 5; //服务器信息 +} + +//断线重连回复 +message SMReconnect +{ + optional int32 errcode = 1; //错误码 0:成功 1:重连失败 + optional string errmsg = 2; //错误描述 +} + //移动 message CMMove { @@ -860,6 +877,8 @@ message SMJoinedNotify optional int32 error_code = 7; //错误 1:服务器维护中 2:服务器繁忙请稍后再进入 optional int32 room_mode = 8; //0:吃鸡模式 1:僵尸模式 + + optional string server_info = 9; //服务器信息(重连时使用) } //地图信息