blob: d13c01d40fded9aee6a05c4d438929b3615737ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#include "game_tab/Game.hpp"
#include <algorithm>
#include <vector>
class GameBase {
public:
virtual Game *GetGame(std::uint32_t id) = 0;
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;
virtual bool NextGame() = 0;
virtual std::string GetTag(std::string tag) = 0;
virtual void Reset() = 0;
/**
* @brief Save the given base into current base format (export)
*
* @param base
*/
virtual void Export(GameBase *base) = 0;
};
|