private void ConvertSituantionData(BattleSituation situation, Data.BattleSituation data) { situation.fatality = data.fatality; situation.kills = data.kills; situation.mvpValue = data.mvpValue; situation.playerId = data.playerId; situation.resources = data.resources; }
private void FillSituantionData(MatchSide side, List <Data.BattleSituation> list) { List <BattleSituation> sideSituations = sideBattleSituations[side]; for (int index = 0; index < sideSituations.Count; index++) { BattleSituation battleSituation = sideSituations[index]; Data.BattleSituation situation = new Data.BattleSituation(); situation.fatality = battleSituation.fatality; situation.kills = battleSituation.kills; situation.mvpValue = battleSituation.mvpValue; situation.playerId = battleSituation.playerId; situation.resources = battleSituation.resources; list.Add(situation); } }