diff options
author | NiLSPACE <NiLSPACE@users.noreply.github.com> | 2020-10-11 17:44:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-11 17:44:57 +0200 |
commit | bca93b17dabe166d9e52945987acb4d079d71e0f (patch) | |
tree | 24e9068ca4d53ea1a0d02e6b42df0230ecf9faf0 /src/Generating/EndGen.h | |
parent | Adding Silverfish Spawning Blocks (#4946) (diff) | |
download | cuberite-bca93b17dabe166d9e52945987acb4d079d71e0f.tar cuberite-bca93b17dabe166d9e52945987acb4d079d71e0f.tar.gz cuberite-bca93b17dabe166d9e52945987acb4d079d71e0f.tar.bz2 cuberite-bca93b17dabe166d9e52945987acb4d079d71e0f.tar.lz cuberite-bca93b17dabe166d9e52945987acb4d079d71e0f.tar.xz cuberite-bca93b17dabe166d9e52945987acb4d079d71e0f.tar.zst cuberite-bca93b17dabe166d9e52945987acb4d079d71e0f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/EndGen.h | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/src/Generating/EndGen.h b/src/Generating/EndGen.h index c1c6f00b6..bd1debdeb 100644 --- a/src/Generating/EndGen.h +++ b/src/Generating/EndGen.h @@ -30,33 +30,28 @@ protected: /** The Perlin noise used for generating */ cPerlinNoise m_Perlin; + cPerlinNoise m_VoidOffsetNoise; - // XYZ size of the "island", in blocks: - int m_IslandSizeX; - int m_IslandSizeY; - int m_IslandSizeZ; + NOISE_DATATYPE m_AirThresholdMainIsland; + NOISE_DATATYPE m_AirThresholdOtherIslands; + int m_MainIslandSize; + int m_BaseHeight; + int m_TerrainTopMultiplier; + int m_TerrainBottomMultiplier; + int m_VoidOffsetNoiseMultiplier; // XYZ Frequencies of the noise functions: NOISE_DATATYPE m_FrequencyX; NOISE_DATATYPE m_FrequencyY; NOISE_DATATYPE m_FrequencyZ; - // Noise array for the last chunk (in the noise range) - cChunkCoords m_LastChunkCoords; - NOISE_DATATYPE m_NoiseArray[17 * 17 * 257]; // x + 17 * z + 17 * 17 * y - - - /** Unless the LastChunk coords are equal to coords given, prepares the internal state (noise array) */ - void PrepareState(cChunkCoords a_ChunkCoords); - - /** Generates the m_NoiseArray array for the current chunk */ - void GenerateNoiseArray(void); - // cTerrainShapeGen overrides: virtual void GenShape(cChunkCoords a_ChunkCoords, cChunkDesc::Shape & a_Shape) override; // cTerrainCompositionGen overrides: virtual void ComposeTerrain(cChunkDesc & a_ChunkDesc, const cChunkDesc::Shape & a_Shape) override; - virtual void InitializeCompoGen(cIniFile & a_IniFile) override; + + // cTerrainShapeGen overrides: + virtual void InitializeShapeGen(cIniFile & a_IniFile) override; } ; |