VEGO-Engine
0.1
Loading...
Searching...
No Matches
Game.h
1
#pragma once
2
3
class
GameInternal
;
4
5
// TODO: add managers here
6
class
Game
{
7
public
:
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
23
GameInternal
*
gameInternal
;
24
};
25
26
27
// game factory include to simplify imports in implementation
28
#include "GameFactory.h"
GameInternal
Definition
GameInternal.h:31
Game
Definition
Game.h:6
Game::gameInternal
GameInternal * gameInternal
Definition
Game.h:23
Game::setConfigFilePath
virtual std::optional< std::string > setConfigFilePath()
Sets the path for a custom config file.
Definition
Game.h:21
include
Game.h
Generated by
1.13.2