mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 15:01:49 +00:00
Auto content packs detection
This commit is contained in:
parent
bcfdc55277
commit
3ad903449e
8 changed files with 93 additions and 100 deletions
|
|
@ -2,12 +2,15 @@
|
|||
#define WORLD_WORLD_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <filesystem>
|
||||
#include <stdexcept>
|
||||
#include "../typedefs.h"
|
||||
#include "../settings.h"
|
||||
#include "../util/timeutil.h"
|
||||
|
||||
#include "../content/ContentPack.h"
|
||||
|
||||
class Content;
|
||||
class WorldFiles;
|
||||
class Chunks;
|
||||
|
|
@ -23,6 +26,7 @@ public:
|
|||
class World {
|
||||
EngineSettings& settings;
|
||||
const Content* const content;
|
||||
std::vector<ContentPack> packs;
|
||||
public:
|
||||
std::string name;
|
||||
WorldFiles* wfile;
|
||||
|
|
@ -39,7 +43,8 @@ public:
|
|||
std::filesystem::path directory,
|
||||
uint64_t seed,
|
||||
EngineSettings& settings,
|
||||
const Content* content);
|
||||
const Content* content,
|
||||
std::vector<ContentPack> packs);
|
||||
~World();
|
||||
|
||||
void updateTimers(float delta);
|
||||
|
|
@ -52,10 +57,14 @@ public:
|
|||
std::filesystem::path directory,
|
||||
uint64_t seed,
|
||||
EngineSettings& settings,
|
||||
const Content* content);
|
||||
const Content* content,
|
||||
const std::vector<ContentPack>& packs);
|
||||
static Level* load(std::filesystem::path directory,
|
||||
EngineSettings& settings,
|
||||
const Content* content);
|
||||
const Content* content,
|
||||
const std::vector<ContentPack>& packs);
|
||||
|
||||
const std::vector<ContentPack>& getPacks() const;
|
||||
};
|
||||
|
||||
#endif /* WORLD_WORLD_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue