Example #1
0
        public async Task LoadGameAsync(String path)
        {
            if (_dataAccess == null)
            {
                throw new InvalidOperationException("No data access is provided.");
            }
            _gameTable = await _dataAccess.LoadAsync(path);

            _gameSize = _gameTable.TableSize;
            _gameTime = _gameTable.GetGameTime();
        }