在地图战斗
parent
2c5fed5887
commit
5af7cc2907
|
@ -71,6 +71,12 @@ option optimize_for = SPEED;
|
||||||
optional float speed = 6;
|
optional float speed = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message Monster{
|
||||||
|
optional string monsterId = 1; // 怪物id
|
||||||
|
repeated int32 monsterSkill = 2 ; //怪物技能
|
||||||
|
repeated int32 monsterProperty = 3; // 怪物属性
|
||||||
|
}
|
||||||
|
|
||||||
message EventBehaviorValues{
|
message EventBehaviorValues{
|
||||||
repeated int32 behaviorValues = 1;
|
repeated int32 behaviorValues = 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,18 +26,21 @@ import "CommonProto.proto";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 战斗开始
|
// 战斗开始
|
||||||
message FightRequest {
|
message FightStartRequest {
|
||||||
// 战斗类型(手动,自动)
|
// 战斗类型(手动,自动)
|
||||||
optional int32 fightType = 1;
|
optional int32 fightType = 1;
|
||||||
}
|
}
|
||||||
message FightEndResponse {
|
message FightStartResponse {
|
||||||
// 怪物的属性
|
// 怪物的属性
|
||||||
repeated Monster monsterList = 1;
|
//repeated Monster monsterList = 1;
|
||||||
|
}
|
||||||
|
// 战斗结束
|
||||||
|
message FightEndRequest {
|
||||||
|
|
||||||
|
}
|
||||||
|
message FightEndResponse {
|
||||||
|
// 获得的道具
|
||||||
|
repeated Item Items = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Monster{
|
|
||||||
optional string monsterId = 1; // 怪物id
|
|
||||||
repeated int32 monsterSkill =2 ; //怪物技能
|
|
||||||
repeated int32 monsterProperty =3; // 怪物属性
|
|
||||||
}
|
|
||||||
|
|
|
@ -7,8 +7,8 @@ import "CommonProto.proto";
|
||||||
message MapEnterRequest{
|
message MapEnterRequest{
|
||||||
// 需要进入的地图id
|
// 需要进入的地图id
|
||||||
optional int32 mapId = 1;
|
optional int32 mapId = 1;
|
||||||
// 所用英雄
|
// 所用英雄编队
|
||||||
repeated HeroInfo heroInfos = 2;
|
optional int32 teamId = 2;
|
||||||
}
|
}
|
||||||
message MapEnterResponse{
|
message MapEnterResponse{
|
||||||
// 地图信息
|
// 地图信息
|
||||||
|
@ -40,6 +40,10 @@ import "CommonProto.proto";
|
||||||
optional Drop drop = 3;
|
optional Drop drop = 3;
|
||||||
// 开启主线任务
|
// 开启主线任务
|
||||||
optional Mission mission = 4;
|
optional Mission mission = 4;
|
||||||
|
// 战斗属性
|
||||||
|
repeated HeroFightInfo heroFightInfos = 5;
|
||||||
|
// 怪物属性
|
||||||
|
repeated Monster monsterList = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新地图状态
|
// 更新地图状态
|
||||||
|
@ -53,20 +57,6 @@ import "CommonProto.proto";
|
||||||
optional int32 eventId = 1;
|
optional int32 eventId = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 战斗事件结算
|
|
||||||
message FightEndRequest {
|
|
||||||
// 所用英雄(保存血量)
|
|
||||||
repeated HeroInfo heroInfos = 1;
|
|
||||||
}
|
|
||||||
message FightEndResponse {
|
|
||||||
// 获得的道具
|
|
||||||
repeated Item Items = 1;
|
|
||||||
// 大事件id
|
|
||||||
optional int32 bigEventId = 2;
|
|
||||||
// 事件进度,从0开始 -1表示该事件已完成
|
|
||||||
optional int32 eventSchedule = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 出地图
|
// 出地图
|
||||||
message MapOutRequest{
|
message MapOutRequest{
|
||||||
// 走过的格子
|
// 走过的格子
|
||||||
|
|
Loading…
Reference in New Issue