Example #1
0
        public void LoadCells()
        {
            List <List <int> >  jsonData       = DataSaver.Load();
            List <IGenericCell> generatedCells = GeneticCellMutation.GenerateNewCells(jsonData);

            CellField.DeleteAllElements();
            CellField.InitializeLiveCells(generatedCells);
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }