Add files via upload

This commit is contained in:
Onran
2024-02-23 11:48:32 +09:00
committed by GitHub
parent 549b392871
commit a5087cf221
11 changed files with 410 additions and 254 deletions
+10 -1
View File
@@ -12,6 +12,9 @@
#include "audio/Audio.h"
#include "assets/Assets.h"
#include "assets/AssetsLoader.h"
#include "world/WorldGenerators.h"
#include "voxels/DefaultWorldGenerator.h"
#include "voxels/FlatWorldGenerator.h"
#include "window/Window.h"
#include "window/Events.h"
#include "window/Camera.h"
@@ -80,6 +83,12 @@ Engine::Engine(EngineSettings& settings, EnginePaths* paths)
menus::create_version_label(this);
}
setLanguage(settings.ui.language);
addWorldGenerators();
}
void addWorldGenerators() {
WorldGenerators::addWorldGenerator<DefaultWorldGenerator>("core:default");
WorldGenerators::addWorldGenerator<FlatWorldGenerator>("core:flat");
}
void Engine::updateTimers() {
@@ -251,4 +260,4 @@ EnginePaths* Engine::getPaths() {
std::shared_ptr<Screen> Engine::getScreen() {
return screen;
}
}