56 lines
1.3 KiB
Protocol Buffer
56 lines
1.3 KiB
Protocol Buffer
package com.ljsd.jieling.protocols;
|
||
|
||
option optimize_for = SPEED;
|
||
|
||
import "CommonProto.proto";
|
||
|
||
// request 编号需要小于 response 编号
|
||
|
||
message GetAdventureStateInfoResponse{
|
||
repeated AdventureStateInfo adventureStateInfoList = 1;
|
||
repeated AdventureRecommendHeroInfo adventureRecommendHeroInfo = 2; //推荐英雄
|
||
}
|
||
|
||
// 冒险驻扎
|
||
message AventureStationRequest{
|
||
optional int32 position = 1; // 驻扎区域编号
|
||
optional int32 hourDuration =2 ; //驻扎时长
|
||
repeated string heroIdList =3; // 上阵英雄id
|
||
}
|
||
|
||
message TakeAventureRewardRequest{
|
||
optional int32 position = 1; // 驻扎区域编号
|
||
}
|
||
|
||
message TakeAventureRewardResponse{
|
||
optional Drop Drop = 1;
|
||
}
|
||
|
||
|
||
// 战斗开始
|
||
message FightStartRequest {
|
||
// 战斗类型(手动,自动)
|
||
optional int32 fightType = 1;
|
||
}
|
||
message FightStartResponse {
|
||
// 战斗属性
|
||
optional FightData fightData = 1;
|
||
}
|
||
|
||
// 战斗结束
|
||
message FightEndRequest {
|
||
// 怪物组id(接战斗验证后可删除)
|
||
optional int32 monsterGroupId = 1;
|
||
// 战斗序列帧 14#1#0|14#1#0|14#1#0|...|14#1#0
|
||
optional string frames = 2;
|
||
}
|
||
message FightEndResponse {
|
||
//战斗结果
|
||
optional int32 result = 1;
|
||
// 获得的道具
|
||
optional Drop Drop = 2;
|
||
//英雄剩余血量
|
||
repeated int32 remainHpList = 3;
|
||
}
|
||
|