mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
Introduced Content, ContentIndices, no more integer ids hardcoded, common refactor
This commit is contained in:
parent
f2f9343737
commit
3b03464d27
35 changed files with 472 additions and 279 deletions
|
|
@ -10,6 +10,7 @@
|
|||
class Assets;
|
||||
class Level;
|
||||
class Screen;
|
||||
class Content;
|
||||
|
||||
namespace gui {
|
||||
class GUI;
|
||||
|
|
@ -24,6 +25,7 @@ class Engine {
|
|||
Assets* assets;
|
||||
std::shared_ptr<Screen> screen = nullptr;
|
||||
EngineSettings& settings;
|
||||
Content* content;
|
||||
|
||||
uint64_t frame = 0;
|
||||
double lastTime = 0.0;
|
||||
|
|
@ -31,7 +33,7 @@ class Engine {
|
|||
|
||||
gui::GUI* gui;
|
||||
public:
|
||||
Engine(EngineSettings& settings);
|
||||
Engine(EngineSettings& settings, Content* content);
|
||||
~Engine();
|
||||
|
||||
void updateTimers();
|
||||
|
|
@ -42,6 +44,8 @@ public:
|
|||
gui::GUI* getGUI();
|
||||
EngineSettings& getSettings();
|
||||
void setScreen(std::shared_ptr<Screen> screen);
|
||||
|
||||
const Content* getContent() const;
|
||||
};
|
||||
|
||||
#endif // SRC_ENGINE_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue