diff --git a/protos/CommonProto.proto b/protos/CommonProto.proto index fcbc235..a1b355f 100644 --- a/protos/CommonProto.proto +++ b/protos/CommonProto.proto @@ -174,8 +174,14 @@ option optimize_for = SPEED; } - - + message FightData { + // 战斗属性 + optional FightTeamInfo heroFightInfos = 1; + // 怪物属性 + repeated FightTeamInfo monsterList = 2; + //战斗随机种子 + optional int32 fightSeed = 3; + } diff --git a/protos/FightInfoProto.proto b/protos/FightInfoProto.proto index 04fd5db..af1db4d 100644 --- a/protos/FightInfoProto.proto +++ b/protos/FightInfoProto.proto @@ -32,8 +32,8 @@ import "CommonProto.proto"; optional int32 fightType = 1; } message FightStartResponse { - // 怪物的属性 - //repeated Monster monsterList = 1; + // 战斗属性 + optional FightData fightData = 1; } // 战斗结束 diff --git a/protos/MapInfoProto.proto b/protos/MapInfoProto.proto index 1415c6d..bffda1c 100644 --- a/protos/MapInfoProto.proto +++ b/protos/MapInfoProto.proto @@ -45,14 +45,8 @@ import "CommonProto.proto"; optional Drop drop = 3; // 更新主线任务 repeated Mission mission = 4; - // 战斗属性 - optional FightTeamInfo heroFightInfos = 5; - // 怪物属性 - repeated FightTeamInfo monsterList = 6; // 剩余步数 - optional int32 leftStep = 7; - //战斗随机种子 - optional int32 fightSeed = 8; + optional int32 leftStep = 5; } // 更新地图状态