mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
content-pack resources support
This commit is contained in:
parent
c6d2266026
commit
396ee31bcc
43 changed files with 170 additions and 90 deletions
|
|
@ -8,13 +8,15 @@
|
|||
#include "typedefs.h"
|
||||
#include "settings.h"
|
||||
|
||||
#include "assets/Assets.h"
|
||||
#include "content/Content.h"
|
||||
#include "content/ContentPack.h"
|
||||
#include "files/engine_paths.h"
|
||||
|
||||
class Assets;
|
||||
class Level;
|
||||
class Screen;
|
||||
class EnginePaths;
|
||||
class ResPaths;
|
||||
|
||||
namespace gui {
|
||||
class GUI;
|
||||
|
|
@ -26,12 +28,13 @@ public:
|
|||
};
|
||||
|
||||
class Engine {
|
||||
Assets* assets;
|
||||
std::unique_ptr<Assets> assets = nullptr;
|
||||
std::shared_ptr<Screen> screen = nullptr;
|
||||
std::vector<ContentPack> contentPacks;
|
||||
EngineSettings& settings;
|
||||
std::unique_ptr<Content> content = nullptr;
|
||||
EnginePaths* paths;
|
||||
std::unique_ptr<ResPaths> resPaths = nullptr;
|
||||
|
||||
uint64_t frame = 0;
|
||||
double lastTime = 0.0;
|
||||
|
|
@ -54,6 +57,7 @@ public:
|
|||
const Content* getContent() const;
|
||||
std::vector<ContentPack>& getContentPacks();
|
||||
void setLanguage(std::string locale);
|
||||
void loadContent();
|
||||
};
|
||||
|
||||
#endif // SRC_ENGINE_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue