package com.ljsd.jieling.protocols; option optimize_for = SPEED; import "CommonProto.proto"; message HeroInfo { optional string heroId = 1; optional int32 heroHp = 2; } // 进入地图 message MapEnterRequest{ // 需要进入的地图id optional int32 mapId = 1; // 所用英雄编队 optional int32 teamId = 2; } message MapEnterResponse{ // 地图信息 repeated Cell mapList = 1; // 当前所在坐标 optional int32 curXY = 2; // 所用英雄 repeated HeroInfo heroInfos = 3; // 剩余步数 optional int32 leftStep = 4; // 临时背包 optional Drop temporaryItems = 5; // buff repeated FoodBuffer foodBuffers = 6; // 走过的格子 repeated int32 wakeCells = 7; } // 更新事件 message EventUpdateRequest{ // eventPointConfig id optional int32 eventId = 1; // optionConfig Id optional int32 optionId = 2; } message EventUpdateResponse{ // eventPointConfig id optional int32 eventId = 1; optional EventBehaviorCommon EventBehaviorCommon = 2; // 奖励 optional Drop drop = 3; // 更新主线任务 repeated Mission mission = 4; // 剩余步数 optional int32 leftStep = 5; } // 更新地图状态 message MapUpdateRequest{ // 走过的格子 repeated int32 cells = 1; // 当前所在坐标 optional int32 curXY = 2; // 触发坐标 optional int32 triggerXY = 3; } message MapUpdateResponse{ optional int32 eventId = 1; // 剩余步数 optional int32 leftStep = 2; } // 出地图 message MapOutRequest{ // 走过的格子 repeated int32 cells = 1; // 当前所在坐标 optional int32 curXY = 2; optional int32 mapId = 3; } message MapOutResponse{ optional MapAccomplishInfo mapAccomplishInfo= 1; // 地图探索详情 } //领取地图探索度箱子奖励 message TakeMapBoxRequest{ optional int32 mapId =1; //地图id optional int32 boxWeight = 2; //任务度 } message TakeMapBoxResponse{ optional Drop drop =1; } //获取所有地图探索度 message GetMapAccomplishResponse{ repeated MapAccomplishInfo mapAccomplishInfo= 1; // 地图探索详情 }