public void LoadCells() { List <List <int> > jsonData = DataSaver.Load(); List <IGenericCell> generatedCells = GeneticCellMutation.GenerateNewCells(jsonData); CellField.DeleteAllElements(); CellField.InitializeLiveCells(generatedCells); }
private void ReloadCells() { List <List <int> > jsonData = DataSaver.Load(); List <IGenericCell> generatedCells = GeneticCellMutation.GenerateNewCells(jsonData); int[,] field = DataSaver.LoadField(); _simulationManger.DeleteAllElements(); _simulationManger.GenerateGameField(field); _simulationManger.InitializeLiveCells(generatedCells); }
public void LoadCells() { List <List <int> > jsonData = DataSaver.Load(); List <IGenericCell> generatedCells = GeneticCellMutation.GenerateNewCells(jsonData); var field = DataSaver.LoadField(); if (field == null) { CellField.DeleteAllElements(); } else { CellField.DeleteAllElements(field); } CellField.InitializeLiveCells(generatedCells); }