using System.Collections.Generic; namespace Gameplay.LegionBattle.View { public class FightLineArea2 { public List cellList = new List(3000); public bool hasClaimed = false; public void AddCell(FightLineCell2 cell) { cellList.Add(cell); if (cell.claimUnit != null) { hasClaimed = true; } } public void ReverseCells() { for (int i = 0; i < cellList.Count; i++) { var cell = cellList[i]; if (cell.standValue == -1) { cell.standValue = 1; } else if (cell.standValue == 1) { cell.standValue = -1; } } } public void AddArea(FightLineArea2 area) { cellList.AddRange(area.cellList); } } }