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; } // 更新事件 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; } //领取地图探索度箱子奖励 message TakeMapBoxRequest{ optional int32 mapId =1; //地图id optional int32 boxWeight = 2; //任务度 } message TakeMapBoxResponse{ optional Drop drop =1; } //获取地图探索度 message getMapAccomplishRequest{ optional int32 mapId= 1; // 地图id } message getMapAccomplishResponse{ optional int32 mapId= 1; // 地图id optional int32 totalWeight = 2; //总探索度 repeated int32 hadTakedId =3;//已领取的箱子 repeated ExploreDetail exploreDetail =4; //进度详情 }