miduo_protocol/protos/FightInfoProto.proto

51 lines
1.1 KiB
Protocol Buffer
Raw Normal View History

2019-01-24 16:31:46 +08:00
package com.ljsd.jieling.protocols;
option optimize_for = SPEED;
import "CommonProto.proto";
// request 编号需要小于 response 编号
message GetAdventureStateInfoResponse{
repeated AdventureStateInfo adventureStateInfoList = 1;
2019-01-25 12:05:45 +08:00
}
// 冒险驻扎
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;
}
2019-02-26 19:43:40 +08:00
2019-03-02 18:21:48 +08:00
// 战斗开始
message FightStartRequest {
2019-02-26 19:43:40 +08:00
// 战斗类型(手动,自动)
optional int32 fightType = 1;
}
2019-03-02 18:21:48 +08:00
message FightStartResponse {
2019-02-26 19:43:40 +08:00
// 怪物的属性
2019-03-02 18:21:48 +08:00
//repeated Monster monsterList = 1;
2019-02-26 19:43:40 +08:00
}
2019-03-20 14:52:03 +08:00
2019-03-02 18:21:48 +08:00
// 战斗结束
message FightEndRequest {
2019-03-19 15:55:25 +08:00
// 怪物组id接战斗验证后可删除
optional int32 monsterGroupId = 1;
2019-03-20 14:52:03 +08:00
// 战斗序列帧 14#1#0|14#1#0|14#1#0|...|14#1#0
optional string frames = 2;
2019-02-26 19:43:40 +08:00
}
2019-03-02 18:21:48 +08:00
message FightEndResponse {
// 获得的道具
2019-03-06 17:11:00 +08:00
optional Drop Drop = 1;
2019-03-02 18:21:48 +08:00
}