miduo_protocol/protos/MapInfoProto.proto

306 lines
6.9 KiB
Protocol Buffer
Raw Normal View History

2019-01-04 15:08:41 +08:00
package com.ljsd.jieling.protocols;
option optimize_for = SPEED;
import "CommonProto.proto";
2019-03-02 18:33:22 +08:00
message HeroInfo {
optional string heroId = 1;
optional int32 heroHp = 2;
2019-04-25 14:37:05 +08:00
optional int32 heroMaxHp =3;
2019-03-02 18:33:22 +08:00
}
2019-07-04 17:39:16 +08:00
message DifficultMapOption {
//副本Id
optional int32 Id = 1;
//难度类型
optional int32 mapdifficulty = 2;
}
2019-03-02 18:33:22 +08:00
2019-06-29 12:12:48 +08:00
message TowerBuff {
// 层数
optional int32 towerLevel = 1;
// 事件点Id
optional int32 eventId = 2;
}
2019-01-07 20:03:29 +08:00
// 进入地图
message MapEnterRequest{
// 需要进入的地图id
optional int32 mapId = 1;
2019-03-02 18:21:48 +08:00
// 所用英雄编队
optional int32 teamId = 2;
2019-01-07 20:03:29 +08:00
}
message MapEnterResponse{
// 地图信息
2019-01-18 17:05:34 +08:00
repeated Cell mapList = 1;
2019-01-07 20:03:29 +08:00
// 当前所在坐标
optional int32 curXY = 2;
2019-01-21 17:51:57 +08:00
// 所用英雄
repeated HeroInfo heroInfos = 3;
2019-04-12 13:49:17 +08:00
// 探索地图剩余时间(秒)
optional int32 leftTime = 4;
2019-03-12 09:41:53 +08:00
// 临时背包
optional Drop temporaryItems = 5;
2019-04-02 15:57:18 +08:00
// buff
repeated FoodBuffer foodBuffers = 6;
2019-04-03 18:58:40 +08:00
// 走过的格子
repeated int32 wakeCells = 7;
2019-04-12 13:49:17 +08:00
// 任务
2019-04-15 20:08:45 +08:00
optional Mission missions = 8;
// 复活剩余时间
optional int32 reviveTime = 9;
// 死亡次数
optional int32 dieCount = 10;
//进度详情
repeated ExploreDetail exploreDetail = 11;
2019-06-28 14:53:26 +08:00
// 补给点信息
repeated TowerBuff buf = 12;
2019-08-01 18:22:43 +08:00
// 无尽副本标志信息
repeated endlessSign signs = 13;
2019-08-27 17:41:27 +08:00
// 无尽副本地图点刷新信息
repeated EndlessRefreshInfo refreshInfo = 14;
2019-09-05 20:26:02 +08:00
//无尽副本是否跳过战斗
optional int32 skipFight = 15;
2019-06-28 14:53:26 +08:00
2019-01-21 17:51:57 +08:00
}
// 更新事件
2019-01-26 12:49:43 +08:00
message EventUpdateRequest{
2019-01-26 14:37:18 +08:00
// eventPointConfig id
optional int32 eventId = 1;
2019-01-26 12:49:43 +08:00
// optionConfig Id
2019-01-26 14:37:18 +08:00
optional int32 optionId = 2;
2019-01-26 12:49:43 +08:00
}
message EventUpdateResponse{
// eventPointConfig id
optional int32 eventId = 1;
optional EventBehaviorCommon EventBehaviorCommon = 2;
2019-01-28 17:29:47 +08:00
// 奖励
optional Drop drop = 3;
2019-03-07 14:03:46 +08:00
// 更新主线任务
2019-04-12 19:35:41 +08:00
optional Mission mission = 4;
2019-04-12 13:49:17 +08:00
// 探索地图剩余时间(秒)
optional int32 leftTime = 5;
2019-04-30 13:49:30 +08:00
// 任务获得的道具
optional Drop missionDrop = 6;
2019-07-15 14:17:01 +08:00
// 随机生成动态地图信息
repeated Cell addMapInfo = 7;
2019-01-26 12:49:43 +08:00
}
// 更新地图状态
message MapUpdateRequest{
2019-01-21 17:51:57 +08:00
// 走过的格子
repeated int32 cells = 1;
// 当前所在坐标
optional int32 curXY = 2;
2019-03-09 18:01:46 +08:00
// 触发坐标
optional int32 triggerXY = 3;
2019-01-21 17:51:57 +08:00
}
2019-02-21 20:26:48 +08:00
message MapUpdateResponse{
optional int32 eventId = 1;
2019-04-12 13:49:17 +08:00
// 探索地图剩余时间(秒)
optional int32 leftTime = 2;
2019-02-21 20:26:48 +08:00
}
2019-01-26 12:49:43 +08:00
2019-01-26 16:54:33 +08:00
// 出地图
message MapOutRequest{
// 走过的格子
repeated int32 cells = 1;
// 当前所在坐标
optional int32 curXY = 2;
2019-03-26 13:53:35 +08:00
optional int32 mapId = 3;
2019-07-01 19:44:04 +08:00
// 1:进入下一层 0直接退出地图
optional int32 outType = 4;
2019-08-05 16:22:56 +08:00
optional int32 targetMapId = 5;
2019-07-03 05:03:30 +08:00
}
message MapOutResponse{
// 使用时间
optional int32 useTime = 1;
2019-03-26 10:13:16 +08:00
}
2019-03-26 10:03:48 +08:00
2019-04-12 13:49:17 +08:00
// 开始探索回复
message MapStartExploreResponse{
// 探索地图剩余时间(秒)
optional int32 leftTime = 1;
}
2019-06-28 14:53:26 +08:00
2019-06-29 12:12:48 +08:00
2019-06-28 14:53:26 +08:00
message UseTowerBuffRequest{
// 层数
optional int32 towerLevel = 1;
2019-06-28 16:23:47 +08:00
// 选项信息
2019-06-28 14:53:26 +08:00
optional int32 optionId = 2;
}
2019-06-28 16:23:47 +08:00
message UseTowerBuffResponse {
2019-07-02 12:12:10 +08:00
optional EventBehaviorCommon EventBehaviorCommon =1;
2019-06-28 16:23:47 +08:00
}
2019-06-28 14:53:26 +08:00
// 爬塔副本信息(试炼副本)
message TowerCopyInfo{
// 当前所在层数
optional int32 tower = 1;
// 已战斗次数
optional int32 fightCount = 2;
// 历史最高层
2019-07-03 05:03:30 +08:00
optional int32 highestTower = 3;
2019-06-26 17:26:27 +08:00
// 当前地图试炼精气如果召唤过boss 该值为 -1
2019-07-03 05:03:30 +08:00
optional int32 essenceValue = 4;
2019-06-29 16:25:22 +08:00
// 是否显示重置1、显示0、不显示
2019-07-03 05:03:30 +08:00
optional int32 mapIntoReset = 5;
2019-07-02 17:57:09 +08:00
// 上层使用时间
optional int32 towerUseTime = 6;
}
2019-06-28 14:53:26 +08:00
//关卡信息
message getAllLevelDifficultyInfosResponse{
2019-04-11 17:25:57 +08:00
repeated LevelDifficultyInfos levelDifficultyInfos = 1;
2019-04-19 11:28:15 +08:00
// 副本信息
repeated MapInfo mapInfos = 2;
// 副本星级奖励领取进度
2019-06-24 17:53:07 +08:00
optional int32 starNum = 3;
// 爬塔副本信息
optional TowerCopyInfo towerCopyInfo = 4;
//已经玩过普通副本地图id
repeated int32 playedGenMapId = 5;
2019-07-04 17:19:51 +08:00
//精英关卡选择情况
2019-07-04 17:39:16 +08:00
repeated DifficultMapOption difficultMapOptions = 6;
2019-04-11 17:25:57 +08:00
}
// 查看排行榜
message MapGetRankInfoRequest{
optional int32 mapId = 1;
}
message MapRankInfo{
optional int32 uid = 1;
optional int32 forces = 2;
2019-04-18 15:20:16 +08:00
repeated int32 heroIds = 3;
2019-10-16 22:02:49 +08:00
optional int32 head = 4;
optional int32 level = 5;
optional int32 rank = 6;
optional int32 time = 7;
optional string name = 8;
2019-04-18 14:24:36 +08:00
repeated int32 pokemonIds = 9;
}
message MapGetRankInfoResponse{
repeated MapRankInfo mapRankInfo = 1;
}
// 购买副本战斗次数
message MapBuyFightCountRequest{
optional int32 buyCount = 1;
}
// 扫荡副本
message MapSweepRequest{
optional int32 mapId = 1;
optional int32 sweepCount = 2;
}
message MapSweepResponse{
// 奖励
2019-04-17 19:20:17 +08:00
repeated Drop drop = 1;
2019-07-15 09:54:59 +08:00
//是否出现云游商店
2019-07-15 11:29:20 +08:00
optional int32 cloudStore = 2;
2019-07-19 14:52:03 +08:00
//精英怪信息
optional SuddenlyBossInfo suddenlyBossInfo = 3;
2019-06-24 16:10:35 +08:00
}
2019-07-02 11:39:51 +08:00
message FbStarRewardResponse{
2019-06-24 16:10:35 +08:00
// 副本星级奖励
optional Drop FbStarReward = 1;
}
// 重置爬塔副本(试炼副本)
message MapTowerResetResponse {
// 当前所在层数
optional int32 tower = 1;
}
// 爬塔副本召唤首领(试炼副本)
message MapTowerCallChiefResponse{
// boss类型
optional int32 type = 1;
// boss信息位置id事件id
optional Cell monsterInfo = 2;
}
2019-06-27 17:34:48 +08:00
// 试炼使用炸弹
message MapTowerUseBombResponse{
//精气值
2019-06-27 17:38:03 +08:00
optional int32 essenceValue = 1;
2019-06-27 17:34:48 +08:00
// 奖励
optional Drop drop = 2;
}
2019-07-04 17:19:51 +08:00
//精英副本
message DifficultMapRequest{
//需要存储的mapid
2019-07-04 17:39:16 +08:00
optional DifficultMapOption mapInfo = 1;
2019-07-04 17:19:51 +08:00
}
2019-07-16 19:43:26 +08:00
//试炼副本层级奖励
message TowerRewardRequest{
//层数
optional int32 tower = 1;
}
message TowerRewardResponse{
//层级奖励
optional Drop drop = 1;
}
2019-07-10 11:34:38 +08:00
2019-07-30 15:49:12 +08:00
message GetEndlessHeroResponse{
//英雄信息
repeated endlessHero heroInfo =1;
2019-08-07 15:11:35 +08:00
repeated int32 openMapId = 2;//已开启的地图Id
2019-07-30 15:49:12 +08:00
}
2019-07-04 17:39:16 +08:00
2019-08-01 18:22:43 +08:00
//无尽副本标志
message SignEndlessCellRequest{
optional endlessSign sign = 1;
}
2019-08-01 20:52:43 +08:00
message SignEndlessCellResponse{
optional string error = 1;
}
2019-08-03 11:33:34 +08:00
//无尽副本剩余行动力
message ExecutionRefreshResponse{
optional int32 exeValue = 1;
}
2019-08-06 09:59:38 +08:00
message EndlessOutConsumeResponse{
optional int32 fightCount = 1;//战斗次数
optional int32 consumeExecution = 2;//消耗行动力
2019-08-21 14:09:05 +08:00
}
2019-08-27 20:53:00 +08:00
//无尽副本发送刷新时间indication
message EndlessTimeIndication{
repeated EndlessRefreshInfo infos = 1;
}
2019-08-31 20:48:45 +08:00
//无尽副本小地图信息
message EndlessMinMapResponse{
optional int32 myXY = 1;
repeated EndlessPoint points = 2;
}
2019-09-04 14:31:21 +08:00
//无尽副本杀死小怪刷新
message RefreshMonsterResponse{
repeated Cell cell = 1;
}
2019-09-05 18:27:53 +08:00
//无尽副本设置是否跳过战斗
message EndlessSetSkipRequest{
optional int32 type = 1;
}
2019-09-12 17:03:26 +08:00
//无尽设置编队indication
message EndlessSetTeamIndication{
repeated HeroInfo info = 1;
}
2019-10-12 11:14:32 +08:00
message EndlessMapChange{
optional int32 mapId = 1;
2019-10-12 11:17:07 +08:00
optional int32 worldLevel = 2;
2019-10-12 11:14:32 +08:00
}