43 const std::string& game_date)
const;
52 bool loadGameState(uint8_t& current_season, uint16_t& managed_team_id,
53 std::string& game_date)
const;
56 std::shared_ptr<DatabaseConnection>
db_conn;
Repository class for managing the game state in the database.
Definition game_state_repository.h:22
std::shared_ptr< DatabaseConnection > db_conn
Definition game_state_repository.h:56
void updateGameState(uint8_t current_season, uint16_t managed_team_id, const std::string &game_date) const
Update the current game state in the database.
Definition game_state_repository.cpp:44
bool loadGameState(uint8_t ¤t_season, uint16_t &managed_team_id, std::string &game_date) const
Load the game state from the database.
Definition game_state_repository.cpp:59
bool isFirstRun() const
Check if this is the first time the game is run.
Definition game_state_repository.cpp:23