diff options
author | Mattes D <github@xoft.cz> | 2017-02-26 22:49:23 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2017-05-04 09:49:30 +0200 |
commit | 187abe3f5e2219e0a80c0cdca4db362e223b60ae (patch) | |
tree | b68eac26b892fa469ec5753d34d4fa8a35a53bd3 /src/Generating/PieceStructuresGen.h | |
parent | APIDoc: Removed non-existent functions and added missing return types (diff) | |
download | cuberite-187abe3f5e2219e0a80c0cdca4db362e223b60ae.tar cuberite-187abe3f5e2219e0a80c0cdca4db362e223b60ae.tar.gz cuberite-187abe3f5e2219e0a80c0cdca4db362e223b60ae.tar.bz2 cuberite-187abe3f5e2219e0a80c0cdca4db362e223b60ae.tar.lz cuberite-187abe3f5e2219e0a80c0cdca4db362e223b60ae.tar.xz cuberite-187abe3f5e2219e0a80c0cdca4db362e223b60ae.tar.zst cuberite-187abe3f5e2219e0a80c0cdca4db362e223b60ae.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/PieceStructuresGen.h | 37 |
1 files changed, 3 insertions, 34 deletions
diff --git a/src/Generating/PieceStructuresGen.h b/src/Generating/PieceStructuresGen.h index c8e2f2b0c..0e36fe9d5 100644 --- a/src/Generating/PieceStructuresGen.h +++ b/src/Generating/PieceStructuresGen.h @@ -40,40 +40,9 @@ public: virtual void GenFinish(cChunkDesc & a_ChunkDesc) override; protected: - class cGen: - public cGridStructGen - { - typedef cGridStructGen Super; - public: - cGen(int a_Seed, cBiomeGenPtr a_BiomeGen, cTerrainHeightGenPtr a_HeightGen, int a_SeaLevel, const AString & a_Name); - - /** Loads the piecepool from a file. - Returns true on success, logs warning and returns false on failure. */ - bool LoadFromFile(const AString & a_FileName); - - // cGridStructGen overrides: - virtual cStructurePtr CreateStructure(int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ) override; - - protected: - - /** The underlying biome generator that defines whether the structure is created or not */ - cBiomeGenPtr m_BiomeGen; - - /** The underlying height generator, used to position the prefabs crossing chunk borders if they are set to FitGround. */ - cTerrainHeightGenPtr m_HeightGen; - - /** The world's sea level, if available. Used for some cVerticalStrategy descendants. */ - int m_SeaLevel; - - /** The name that is used for reporting. */ - AString m_Name; - - /** All available prefabs. */ - cPrefabPiecePool m_Pool; - - /** Maximum depth of the generated piece tree. */ - int m_MaxDepth; - }; + /** The generator doing the work for a single prefab set. + Forward-declared so that its implementation changes don't affect the header. */ + class cGen; typedef SharedPtr<cGen> cGenPtr; typedef std::vector<cGenPtr> cGenPtrs; |