public static GamePreset Initialize() { var gamePreset = new GamePreset(); gamePreset.Reload(); return(gamePreset); }
internal static GameProcess Initialize(GamePreset gamePreset, Window appWindow) { var gameProcess = new GameProcess(gamePreset, appWindow); gameProcess.Load(); return(gameProcess); }
private GameProcess(GamePreset gamePreset, Window appWindow) : this() { _gamePreset = gamePreset; _appWindow = appWindow; _appWindow.LocationChanged += WindowChanged; _appWindow.SizeChanged += WindowChanged; Board = new CellType[_gamePreset.Rows, _gamePreset.Columns]; }
private void InitializePresetTab() { _gamePreset = GamePreset.Initialize(); UpdatePresetControls(); }