mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 05:51:51 +00:00
frontend/screens deleted
This commit is contained in:
parent
7415726e47
commit
61ca91b525
11 changed files with 272 additions and 262 deletions
37
src/frontend/screens/LevelScreen.hpp
Normal file
37
src/frontend/screens/LevelScreen.hpp
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#ifndef FRONTEND_SCREENS_LEVEL_SCREEN_HPP_
|
||||
#define FRONTEND_SCREENS_LEVEL_SCREEN_HPP_
|
||||
|
||||
#include "Screen.hpp"
|
||||
|
||||
#include <memory>
|
||||
|
||||
class Engine;
|
||||
class LevelFrontend;
|
||||
class Hud;
|
||||
class LevelController;
|
||||
class WorldRenderer;
|
||||
class TextureAnimator;
|
||||
class Level;
|
||||
|
||||
class LevelScreen : public Screen {
|
||||
std::unique_ptr<LevelFrontend> frontend;
|
||||
std::unique_ptr<Hud> hud;
|
||||
std::unique_ptr<LevelController> controller;
|
||||
std::unique_ptr<WorldRenderer> worldRenderer;
|
||||
std::unique_ptr<TextureAnimator> animator;
|
||||
|
||||
bool hudVisible = true;
|
||||
void updateHotkeys();
|
||||
public:
|
||||
LevelScreen(Engine* engine, Level* level);
|
||||
~LevelScreen();
|
||||
|
||||
void update(float delta) override;
|
||||
void draw(float delta) override;
|
||||
|
||||
void onEngineShutdown() override;
|
||||
|
||||
LevelController* getLevelController() const;
|
||||
};
|
||||
|
||||
#endif // FRONTEND_SCREENS_LEVEL_SCREEN_HPP_
|
||||
Loading…
Add table
Add a link
Reference in a new issue