#include "Generator.hpp"
#include <list>
+#include <string>
#include <vector>
#include <glm/glm.hpp>
public:
struct Config {
+ std::string name = "default";
// initial player position
glm::vec3 spawn = { 0.0f, 0.0f, 0.0f };
// direction facing towards(!) the light
World(const BlockTypeRegistry &, const Config &, const WorldSave &);
+ const std::string &Name() const noexcept { return config.name; }
+
/// check if this ray hits a block
/// depth in the collision is the distance between the ray's
/// origin and the intersection point