Add files via upload

This commit is contained in:
Onran
2024-02-23 17:12:00 +09:00
committed by GitHub
parent a5087cf221
commit 8130b0626f
17 changed files with 95 additions and 39 deletions
+6 -5
View File
@@ -7,6 +7,7 @@
#include <glm/glm.hpp>
#include <filesystem>
#include <unordered_set>
#include <functional>
#define GLEW_STATIC
#include "audio/Audio.h"
@@ -44,6 +45,11 @@
namespace fs = std::filesystem;
void addWorldGenerators() {
WorldGenerators::addGenerator<DefaultWorldGenerator>("core:default");
WorldGenerators::addGenerator<FlatWorldGenerator>("core:flat");
}
Engine::Engine(EngineSettings& settings, EnginePaths* paths)
: settings(settings), paths(paths)
{
@@ -86,11 +92,6 @@ Engine::Engine(EngineSettings& settings, EnginePaths* paths)
addWorldGenerators();
}
void addWorldGenerators() {
WorldGenerators::addWorldGenerator<DefaultWorldGenerator>("core:default");
WorldGenerators::addWorldGenerator<FlatWorldGenerator>("core:flat");
}
void Engine::updateTimers() {
frame++;
double currentTime = Window::time();