mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
world creation content menu
This commit is contained in:
parent
5402872c28
commit
bab806c2f8
9 changed files with 82 additions and 23 deletions
|
|
@ -247,6 +247,13 @@ void Engine::loadContent() {
|
|||
onAssetsLoaded();
|
||||
}
|
||||
|
||||
void Engine::resetContent() {
|
||||
auto manager = createPacksManager(fs::path());
|
||||
manager.scan();
|
||||
contentPacks = manager.getAll(basePacks);
|
||||
loadContent();
|
||||
}
|
||||
|
||||
void Engine::loadWorldContent(const fs::path& folder) {
|
||||
contentPacks.clear();
|
||||
auto packNames = ContentPack::worldPacksList(folder);
|
||||
|
|
@ -304,6 +311,10 @@ std::vector<ContentPack>& Engine::getContentPacks() {
|
|||
return contentPacks;
|
||||
}
|
||||
|
||||
std::vector<std::string>& Engine::getBasePacks() {
|
||||
return basePacks;
|
||||
}
|
||||
|
||||
EnginePaths* Engine::getPaths() {
|
||||
return paths;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue