mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-04-19 04:09:41 +00:00
Migrate to std::shared_ptr<GameBase>
This commit is contained in:
parent
44ea0a50a3
commit
bd71371bed
10 changed files with 22 additions and 26 deletions
|
@ -8,7 +8,7 @@ class GameBase {
|
|||
public:
|
||||
virtual std::shared_ptr<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<std::shared_ptr<GameBase>> new_games_bases,
|
||||
std::vector<std::shared_ptr<Game>> new_games) = 0;
|
||||
virtual std::shared_ptr<Game> GetCurrentGame() = 0;
|
||||
virtual bool NextGame() = 0;
|
||||
|
@ -19,5 +19,5 @@ public:
|
|||
*
|
||||
* @param base
|
||||
*/
|
||||
virtual void Export(GameBase *base) = 0;
|
||||
virtual void Export(std::shared_ptr<GameBase> base) = 0;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue