mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
contentpack removal feature + refactor
This commit is contained in:
parent
3f0c710a47
commit
daaba374a3
24 changed files with 345 additions and 295 deletions
|
|
@ -15,7 +15,7 @@ class LevelFrontend;
|
|||
class LevelController;
|
||||
class TextureAnimator;
|
||||
|
||||
/* Screen is a mainloop state */
|
||||
/// @brief Screen is a mainloop state
|
||||
class Screen {
|
||||
protected:
|
||||
Engine* engine;
|
||||
|
|
@ -25,6 +25,7 @@ public:
|
|||
virtual ~Screen();
|
||||
virtual void update(float delta) = 0;
|
||||
virtual void draw(float delta) = 0;
|
||||
virtual void onEngineShutdown() {};
|
||||
};
|
||||
|
||||
class MenuScreen : public Screen {
|
||||
|
|
@ -52,6 +53,10 @@ public:
|
|||
|
||||
void update(float delta) override;
|
||||
void draw(float delta) override;
|
||||
|
||||
void onEngineShutdown() override;
|
||||
|
||||
LevelController* getLevelController() const;
|
||||
};
|
||||
|
||||
#endif // FRONTEND_SCREENS_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue