From b3ac450ddd085762f5f0c095c479154aa4ad8ccf Mon Sep 17 00:00:00 2001 From: duhui Date: Mon, 11 Jul 2022 10:51:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AF=94=E6=95=B0=E5=AD=97=E5=B0=8F=E6=B8=B8?= =?UTF-8?q?=E6=88=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/CommonProto.proto | 13 +++++++++++++ protos/MessageTypeProto.proto | 18 +++++++++++++++++- protos/PlayerInfoProto.proto | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+), 1 deletion(-) diff --git a/protos/CommonProto.proto b/protos/CommonProto.proto index afa3e2f..557185d 100644 --- a/protos/CommonProto.proto +++ b/protos/CommonProto.proto @@ -1287,4 +1287,17 @@ option optimize_for = SPEED; repeated WeekCardDay day = 2;//每天状态 } + // 比数字小游戏相关 + message CompareNumLevelUserInfo { + optional int32 uid = 1; + optional int32 headFrame = 2; + optional int32 time = 3; + } + + message CompareNumLevelInfo { + optional int32 levelId = 1; // 关卡Id + repeated CompareNumLevelUserInfo userInfo = 2; // 关卡对应的好友信息 + + } + \ No newline at end of file diff --git a/protos/MessageTypeProto.proto b/protos/MessageTypeProto.proto index 81bde3d..13676c7 100644 --- a/protos/MessageTypeProto.proto +++ b/protos/MessageTypeProto.proto @@ -1462,7 +1462,23 @@ enum MessageType{ WeekCardInfoIndication = 3050074; - //800000起为global 协议 + // 比数字小游戏 + COMPARENUM_END_GAME_REQUEST = 3050081; + COMPARENUM_END_GAME_RESPONSE = 3050082; + + COMPARENUM_BONUS_REQUEST = 3050083; + COMPARENUM_BONUS_RESPONSE = 3050084; + + COMPARENUM_DATA_INDICATION = 3050085; + + COMPARENUM_INFO_REQUEST = 3050086; + COMPARENUM_INFO_RESPONSE = 3050087; + + + + + //==========================================================800000起为global 协议========================================================== + GetWorldServerRequest = 800001;//获取世界服ip GetWorldServerResponse = 800002; diff --git a/protos/PlayerInfoProto.proto b/protos/PlayerInfoProto.proto index a76cced..d7e5496 100644 --- a/protos/PlayerInfoProto.proto +++ b/protos/PlayerInfoProto.proto @@ -1219,4 +1219,39 @@ import "CommonProto.proto"; // 周卡信息推送 message WeekCardInfoIndication{ optional WeekCardInfo weekcard = 1;// 周卡信息 + } + + + // 比数字小游戏相关 + + // 过关 + message CompareNumEndGameRequest { + optional int32 levelId = 1; // 关卡Id + optional int32 result = 2; // 0:失败 1:成功 + } + message CompareNumEndGameResponse { + optional int32 nextId = 1; // 关卡Id + optional Drop drop = 2; // 过关奖励 + } + + // 领取章节累计奖励 + message CompareNumBonusRequest { + optional int32 rewardId = 1; // 关卡Id (章节ID * 1000 + 累计关卡数) + } + message CompareNumBonusResponse { + optional Drop drop = 1; // 累计奖励 + } + + message CompareNumDataIndication{ + optional int32 levelId = 1; // 当前关卡Id + optional int32 completeNum = 2; // 当前章节通关数量 + repeated int32 rewardIdArr = 3; // 存储已领取过的关卡累计奖励 (章节ID * 1000 + 累计关卡数) + } + + message CompareNumInfoRequest { + optional int32 chapterId = 1; + } + message CompareNumInfoResponse { + optional int32 levelId = 1; // 当前关卡Id + repeated CompareNumLevelInfo levelInfo = 2; } \ No newline at end of file