2022-02-24 11:50:16 +01:00
|
|
|
#pragma once
|
|
|
|
#include "game_tab/Game.hpp"
|
2022-02-25 11:13:35 +01:00
|
|
|
#include <algorithm>
|
|
|
|
#include <vector>
|
2022-02-24 11:50:16 +01:00
|
|
|
|
|
|
|
class GameBase {
|
|
|
|
|
|
|
|
public:
|
|
|
|
virtual Game *GetGame(std::uint32_t id) = 0;
|
2022-02-25 11:13:35 +01:00
|
|
|
virtual void Save(std::vector<std::uint32_t> to_ignore,
|
|
|
|
std::vector<GameBase *> new_games_bases,
|
|
|
|
std::vector<Game *> new_games) = 0;
|
|
|
|
virtual Game *GetCurrentGame() = 0;
|
2022-02-24 15:22:56 +01:00
|
|
|
virtual bool NextGame() = 0;
|
|
|
|
virtual std::string GetTag(std::string tag) = 0;
|
|
|
|
virtual void Reset() = 0;
|
2022-02-26 12:30:07 +01:00
|
|
|
/**
|
|
|
|
* @brief Save the given base into current base format (export)
|
|
|
|
*
|
|
|
|
* @param base
|
|
|
|
*/
|
|
|
|
virtual void Export(GameBase *base) = 0;
|
2022-02-24 11:50:16 +01:00
|
|
|
};
|