47 lines
1006 B
Protocol Buffer
47 lines
1006 B
Protocol Buffer
package com.ljsd.jieling.protocols;
|
|
|
|
option optimize_for = SPEED;
|
|
|
|
import "CommonProto.proto";
|
|
|
|
// request 编号需要小于 response 编号
|
|
|
|
message GetAdventureStateInfoResponse{
|
|
repeated AdventureStateInfo adventureStateInfoList = 1;
|
|
}
|
|
|
|
// 冒险驻扎
|
|
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 {
|
|
// 怪物的属性
|
|
//repeated Monster monsterList = 1;
|
|
}
|
|
// 战斗结束
|
|
message FightEndRequest {
|
|
optional int32 monsterGroupId = 1; // 怪物组id
|
|
}
|
|
message FightEndResponse {
|
|
// 获得的道具
|
|
optional Drop Drop = 1;
|
|
}
|
|
|