src/GameLogic/SaveManager.cpp
// Wczytywanie danych z pliku binarnego:
Wczytywanie danych z pliku binarnego.
Wczytywanie danych z pliku binarnego .
void SaveManager::readFundamentalDataFromBinaryFile( std::ifstream &file ) {
  const std::size_t rowsCount = BinaryFiles::read< std::size_t >( file ),
                    columnsCount = BinaryFiles::read< std::size_t >( file ),
                    minesCount = BinaryFiles::read< std::size_t >( file ),
                    uncoveredCellsCount = BinaryFiles::read< std::size_t >( file ),
                    usedFlagsCount = BinaryFiles::read< std::size_t >( file );
  const unsigned elapsedSeconds = BinaryFiles::read< unsigned >( file );
  const bool mined = BinaryFiles::read< bool >( file );              
  mCells = MinefieldData( rowsCount, columnsCount, minesCount, uncoveredCellsCount, usedFlagsCount, elapsedSeconds, mined );
}
void SaveManager :: readFundamentalDataFromBinaryFile ( std :: ifstream & file ) { const std :: size_t rowsCount = BinaryFiles :: read < std :: size_t > ( file ) , columnsCount = BinaryFiles :: read < std :: size_t > ( file ) , minesCount = BinaryFiles :: read < std :: size_t > ( file ) , uncoveredCellsCount = BinaryFiles :: read < std :: size_t > ( file ) , usedFlagsCount = BinaryFiles :: read < std :: size_t > ( file ) ; const unsigned elapsedSeconds = BinaryFiles :: read < unsigned > ( file ) ; const bool mined = BinaryFiles :: read < bool > ( file ) ; mCells = MinefieldData ( rowsCount , columnsCount , minesCount , uncoveredCellsCount , usedFlagsCount , elapsedSeconds , mined ) ; }
Wczytywanie danych z pliku binarnego:
Wczytywanie danych z pliku binarnego :