0
0
mirror of https://github.com/Nimac0/SDL_Minigame synced 2026-01-12 15:53:42 +00:00
freezarite 5e48f4e34f Config now gets read by the GameInternal.cpp
Made the process of adding a custom Config file work via a Virtual function within Game.h
2024-12-13 14:36:43 +01:00

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> getConfigFilePath() {return std::nullopt;}
GameInternal* gameInternal; //!< \deprecated
};
// game factory include to simplify imports in implementation
#include "GameFactory.h"