VEGO-Engine  0.1
Loading...
Searching...
No Matches
Game.h
1#pragma once
2
3class GameInternal;
4
5// TODO: add managers here
6class Game {
7public:
8 virtual ~Game() {}
9
10 virtual void init() = 0;
11 virtual void update(uint_fast16_t diffTime) = 0;
12
21 virtual std::optional<std::string> setConfigFilePath() {return std::nullopt;}
22
24};
25
26
27// game factory include to simplify imports in implementation
28#include "GameFactory.h"
Definition GameInternal.h:31
Definition Game.h:6
GameInternal * gameInternal
Definition Game.h:23
virtual std::optional< std::string > setConfigFilePath()
Sets the path for a custom config file.
Definition Game.h:21