voxelcore/src/frontend/LevelFrontend.hpp
2025-04-02 14:59:53 +03:00

33 lines
730 B
C++

#pragma once
#include <memory>
class Level;
class Assets;
class Player;
class Engine;
class ContentGfxCache;
class LevelController;
struct EngineSettings;
class LevelFrontend {
Level& level;
LevelController* controller;
Assets& assets;
std::unique_ptr<ContentGfxCache> contentCache;
public:
LevelFrontend(
Engine& engine,
Player* currentPlayer,
LevelController* controller,
const EngineSettings& settings
);
~LevelFrontend();
Level& getLevel();
const Level& getLevel() const;
const Assets& getAssets() const;
const ContentGfxCache& getContentGfxCache() const;
ContentGfxCache& getContentGfxCache();
LevelController* getController() const;
};