From c3e6c72af49371bb8023ce1a08b3938c67a8e9ba Mon Sep 17 00:00:00 2001 From: wangyuan Date: Tue, 24 Sep 2019 14:00:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=85=B3=E5=8D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/FightInfoProto.proto | 9 ++++++++- protos/MessageTypeProto.proto | 8 ++++++++ protos/PlayerInfoProto.proto | 7 +++++++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/protos/FightInfoProto.proto b/protos/FightInfoProto.proto index 7222bc6..a019b71 100644 --- a/protos/FightInfoProto.proto +++ b/protos/FightInfoProto.proto @@ -4,6 +4,8 @@ option optimize_for = SPEED; import "CommonProto.proto"; +import "PlayerInfoProto.proto"; + // request 编号需要小于 response 编号 // 战斗开始 @@ -27,7 +29,7 @@ import "CommonProto.proto"; // 战斗序列帧 14#1#0|14#1#0|14#1#0|...|14#1#0 optional string frames = 2; optional int32 fightId = 3; - optional int32 type = 4; // 类型 1: 关卡 2:地图 3:精英怪 4:爬塔副本 5:妖兽 + optional int32 type = 4; // 类型 1: 关卡 2:地图 3:精英怪 4:爬塔副本 5:妖兽 6: 新关卡 optional int32 dropout = 5 ;// 是否退出 1 :退出 } message FightEndResponse { @@ -50,6 +52,7 @@ import "CommonProto.proto"; // 试炼精气 optional int32 essenceValue = 9; optional int32 lastXY =10; //失败回退到上一步的位置坐标 + optional UpdateUserExpIndicaiton UpdateUserExpIndicaiton = 11;//经验 } // 快速战斗 @@ -189,5 +192,9 @@ import "CommonProto.proto"; optional AdventureBossSimpleInfo adventureBossInfo =1; // 召唤bosss信息 } + message MainLevelTakeStateRewardResponse{ + optional Drop drop = 1 ;// 挂机奖励 + } + diff --git a/protos/MessageTypeProto.proto b/protos/MessageTypeProto.proto index d16a91d..f4bcdba 100644 --- a/protos/MessageTypeProto.proto +++ b/protos/MessageTypeProto.proto @@ -457,6 +457,14 @@ enum MessageType{ //出图indication MAP_OUT_INDICATION = 11235; + MAIN_LEVEL_GET_INFO_REQUEST = 11236;// 获取关卡信息 + MAIN_LEVEL_GET_INFO_RESPONSE = 11237; + + MAIN_LEVEL_TAKE_STATE_REWARD_REQUEST = 11238; //领取关卡挂机奖励 + MAIN_LEVEL_TAKE_STATE_REWARD_RESPONSE = 11239; + + + // N 11300 NOTIFY_PAY_SUCCESS_INDICATION = 11300 ; // 通知前端充值成功 // O 11400 diff --git a/protos/PlayerInfoProto.proto b/protos/PlayerInfoProto.proto index cf8688c..d18ec17 100644 --- a/protos/PlayerInfoProto.proto +++ b/protos/PlayerInfoProto.proto @@ -551,4 +551,11 @@ import "CommonProto.proto"; optional int32 goodsId = 1; // 索购买的商品id optional Drop drop = 2; // } + + + message GetMainLevelInfoResponse{ + optional int32 fightId = 1 ; //当前关卡id + optional int32 state = 2 ;// 1 已开启但未通过 2 :已通过 -1:代表等级卡 + optional int32 duration = 3;//挂机时长 + } \ No newline at end of file