数据互换

back_recharge
wangyuan 2019-05-14 15:17:51 +08:00
parent b39de8d120
commit dba44383fe
1 changed files with 7 additions and 1 deletions

View File

@ -226,7 +226,13 @@ public class ArenaLogic {
if(skipFight == 0){
builder.setFightData(build);
}
byte[] snapRecord =build.toByteArray();
//数据互换
byte[] snapRecord = CommonProto.FightData.newBuilder()
.setFightMaxTime(SArenaSetting.getSArenaSetting().getMostTime())
.setFightSeed(seed)
.setHeroFightInfos(deffightTeamInfo)
.addMonsterList(fightTeamInfo)
.build().toByteArray();
arenaRecord.setFightData(snapRecord);
LuaValue getFightData = FightDataUtil.getFinalPlayerFightData(fightTeamInfo, deffightTeamInfo);
LuaValue getOptionData = FightDataUtil.getOptionData("");