Files
test/GameOfLife3D/GameModel/GameOfLifeModel.cs
2024-10-24 16:16:43 +02:00

40 lines
770 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GameOfLife3D.GameModel
{
internal class GameOfLifeModel
{
private int X_DIM,Y_DIM,Z_DIM;
public GameOfLifeModel(int SizeX,int SizeY,int SizeZ) {
Map = new(SizeX,SizeY,SizeZ);
X_DIM = SizeX;
Y_DIM = SizeY;
Z_DIM = SizeZ;
}
public GameOfLifeModel(int Size)
{
Map = new(Size);
X_DIM = Size;
Y_DIM = Size;
Z_DIM = Size;
}
private GameOfLifeModel() { }
public Map Map { get; init; }
public void Update()
{
Map.Update();
}
}
}