mirror of
https://gitee.com/yanmu_ym/cpp.git
synced 2026-02-03 09:33:16 +08:00
22 lines
525 B
C++
22 lines
525 B
C++
#ifndef LOADRESOURCE_H
|
|
#define LOADRESOURCE_H
|
|
|
|
#include <string>
|
|
#include <tuple>
|
|
|
|
namespace Game {
|
|
using load_gameboard_status_t = std::tuple<bool, struct GameBoard>;
|
|
|
|
namespace Loader {
|
|
load_gameboard_status_t load_GameBoard_data_from_file(std::string filename);
|
|
|
|
// Output: {[loadfile_ok_status], [decltype(gameboard.score)],
|
|
// [decltype(gameboard.moveCount)]}
|
|
std::tuple<bool, std::tuple<unsigned long long, long long>>
|
|
load_game_stats_from_file(std::string filename);
|
|
|
|
} // namespace Loader
|
|
} // namespace Game
|
|
|
|
#endif
|