Hopson97 / open-builder

Open "Minecraft-like" game with multiplayer support and Lua scripting support for the both client and server
https://github.com/Hopson97/open-builder/projects/3
GNU General Public License v3.0
700 stars 80 forks source link

Compile error #207

Closed romanwojciechowski closed 3 years ago

romanwojciechowski commented 4 years ago

I get an error when I try to compile

I followed the instructions - https://github.com/Hopson97/open-builder/blob/master/docs/building/Building_linux_cmake.md

Derghust commented 3 years ago

Hello,

The easiest thing you can do is add this: #include<string> to the open-builder/src/server/world/terrain_generation.h like this:

#pragma once

#include <array>
#include <common/world/coordinate.h>
#include <common/world/world_constants.h>
#include <vector>
#include <string> // this is what you want to include there for generateSeed where is it used

class ChunkManager;
class BiomeDataManager;
class VoxelDataManager;

std::vector<ChunkPosition> generateTerrain(ChunkManager& chunkManager, int chunkX,
                                           int chunkZ, const VoxelDataManager& voxelData,
                                           const BiomeDataManager& biomeData, int seed,
                                           int worldSize);

float generateSeed(const std::string& input);

I'm new here in open sources, so I don't know how to report a possible change.