mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 15:53:42 +00:00
19 lines
414 B
C++
19 lines
414 B
C++
#pragma once
|
|
|
|
class GameInternal;
|
|
|
|
// TODO: add managers here
|
|
class Game {
|
|
public:
|
|
virtual ~Game() {}
|
|
|
|
virtual void init() = 0;
|
|
virtual void update(uint_fast16_t diffTime) = 0;
|
|
virtual std::optional<std::string> setConfigFilePath() {return std::nullopt;}
|
|
|
|
GameInternal* gameInternal; //!< \deprecated
|
|
};
|
|
|
|
|
|
// game factory include to simplify imports in implementation
|
|
#include "GameFactory.h" |