miduo_protocol/protos/MapInfoProto.proto

99 lines
2.1 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-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-03-12 09:41:53 +08:00
// 剩余步数
optional int32 leftStep = 4;
// 临时背包
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-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
// 更新主线任务
repeated Mission mission = 4;
2019-03-19 15:55:25 +08:00
// 剩余步数
2019-03-20 15:55:10 +08:00
optional int32 leftStep = 5;
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-03-12 09:41:53 +08:00
// 剩余步数
optional int32 leftStep = 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-03-26 10:13:16 +08:00
}
2019-03-26 10:03:48 +08:00
2019-03-26 10:13:16 +08:00
message MapOutResponse{
optional MapAccomplishInfo mapAccomplishInfo= 1; // 地图探索详情
2019-01-26 16:54:33 +08:00
}
2019-03-25 16:45:12 +08:00
//领取地图探索度箱子奖励
message TakeMapBoxRequest{
optional int32 mapId =1; //地图id
optional int32 boxWeight = 2; //任务度
}
message TakeMapBoxResponse{
optional Drop drop =1;
}
2019-03-26 10:13:16 +08:00
//获取所有地图探索度
2019-03-25 18:33:47 +08:00
message GetMapAccomplishResponse{
2019-03-26 10:03:48 +08:00
repeated MapAccomplishInfo mapAccomplishInfo= 1; // 地图探索详情
2019-03-25 16:45:12 +08:00
}