From 86464ad2a3c3c74bb18cfb4e7246f81611fd9e3b Mon Sep 17 00:00:00 2001 From: "PC-202302260912\\Administrator" <1769111741@qq.com> Date: Thu, 16 Nov 2023 14:22:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=B9=E8=AE=AD=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/CommonProto.proto | 17 +++++++++++++++++ protos/HeroInfoProto.proto | 36 +++++++++++++++++++++++++++++++++++ protos/MessageTypeProto.proto | 2 ++ 3 files changed, 55 insertions(+) diff --git a/protos/CommonProto.proto b/protos/CommonProto.proto index 9d5c754..37001b3 100644 --- a/protos/CommonProto.proto +++ b/protos/CommonProto.proto @@ -132,6 +132,16 @@ option optimize_for = SPEED; repeated string faxiang = 23;//法相id repeated int32 giftEquipIds = 24;//礼物装备列表 repeated potentialInfo potential = 25;//潜能属性 + optional HeroTraining training = 26;//特训属性 + } + + message HeroTraining{ + optional string heroId = 1;//英雄唯一id + optional int32 trainingLv = 2;//特训等级 + optional int32 attackExp = 3;//攻击特训经验 + optional int32 defenseExp = 4;//防御特训经验 + optional int32 hpExp = 5;//血量特训经验 + repeated int32 unlockIds = 6;//解锁技能id的列id,表train } message PokemonInfo{ @@ -1355,4 +1365,11 @@ option optimize_for = SPEED; optional string name = 2; optional int64 endTime = 3; repeated GmSingleGift missions = 4; + } + + message TrainingArchitectureInfo{ + optional int32 id = 1;//建筑id + optional int32 lv = 2;//建筑等级 + optional int32 startTime = 3;// 0:表示建筑未在升级中,其他数字反之 + optional string heroId = 4;// 0:表示没有英雄在特训,其他数字再反之 } \ No newline at end of file diff --git a/protos/HeroInfoProto.proto b/protos/HeroInfoProto.proto index 5069bae..81e4981 100644 --- a/protos/HeroInfoProto.proto +++ b/protos/HeroInfoProto.proto @@ -668,3 +668,39 @@ message BaublesDownBlessRequest{ repeated string blessBaubles = 2;//庇佑得id } +/******** 特训 ***********/ +// 特训操作 +message TrainingRequest{ + optional int32 architectureId = 1;//建筑id + optional string heroId = 2;//英雄唯一id + optional int32 operation = 3;//1:开始特训 2:结束特训 3:立即完成 +} + +message TrainingResponse{ + optional HeroTraining training = 1;//英雄特训信息 +} + +// 特训解锁技能, 返回结构用TrainingResponse +message TrainingUnlockSkillRequest { + optional string heroId = 1;//英雄唯一id + optional int32 unlockId = 2;//解锁技能列id,表train +} + +// 特训建筑升级操作 +message TrainingArchitectureUpRequest{ + optional int32 archId = 1;//建筑id + optional int32 operation = 2;//操作 1:升级 2:立即完成 +} + +// 获取特训建筑信息 +message TrainingArchitectureInfoRequest{ +} + +message TrainingArchitectureInfoResponse{ + repeated TrainingArchitectureInfo infos = 1;//建筑属性 +} + +// 特训激活下一级,返回结构用TrainingResponse +message TrainingUpLvRequest{ + optional string heroId = 1;//英雄唯一id +} \ No newline at end of file diff --git a/protos/MessageTypeProto.proto b/protos/MessageTypeProto.proto index a386a06..030b4e0 100644 --- a/protos/MessageTypeProto.proto +++ b/protos/MessageTypeProto.proto @@ -1674,6 +1674,8 @@ enum MessageType{ TrainingArchitectureUpResponse = 6000028; TrainingArchitectureInfoRequest = 6000029; TrainingArchitectureInfoResponse = 6000030; + TrainingUpLvRequest = 6000031; + TrainingUpLvResponse = 6000032; }