diff options
author | madmaxoft <github@xoft.cz> | 2014-09-22 18:33:18 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-09-22 21:52:37 +0200 |
commit | 583532e1b927e1b9af9782e35c7f2d089e997254 (patch) | |
tree | 89eee174088c08acca9e250507adf669274b1540 /Tools/QtBiomeVisualiser/ChunkSource.h | |
parent | QtBiomeVisualiser: Moved the generator setup into a side-pane. (diff) | |
download | cuberite-583532e1b927e1b9af9782e35c7f2d089e997254.tar cuberite-583532e1b927e1b9af9782e35c7f2d089e997254.tar.gz cuberite-583532e1b927e1b9af9782e35c7f2d089e997254.tar.bz2 cuberite-583532e1b927e1b9af9782e35c7f2d089e997254.tar.lz cuberite-583532e1b927e1b9af9782e35c7f2d089e997254.tar.xz cuberite-583532e1b927e1b9af9782e35c7f2d089e997254.tar.zst cuberite-583532e1b927e1b9af9782e35c7f2d089e997254.zip |
Diffstat (limited to 'Tools/QtBiomeVisualiser/ChunkSource.h')
-rw-r--r-- | Tools/QtBiomeVisualiser/ChunkSource.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Tools/QtBiomeVisualiser/ChunkSource.h b/Tools/QtBiomeVisualiser/ChunkSource.h index a5612da01..05e8ac5de 100644 --- a/Tools/QtBiomeVisualiser/ChunkSource.h +++ b/Tools/QtBiomeVisualiser/ChunkSource.h @@ -12,6 +12,7 @@ class cBiomeGen; typedef std::shared_ptr<cBiomeGen> cBiomeGenPtr; class cIniFile; +typedef std::shared_ptr<cIniFile> cIniFilePtr; @@ -41,15 +42,15 @@ class BioGenSource : { public: /** Constructs a new BioGenSource based on the biome generator that is defined in the specified world.ini file. */ - BioGenSource(QString a_WorldIniPath); + BioGenSource(cIniFilePtr a_IniFile); // ChunkSource overrides: virtual void getChunkBiomes(int a_ChunkX, int a_ChunkZ, ChunkPtr a_DestChunk) override; virtual void reload(void) override; protected: - /** Path to the world.ini file from which the m_WorldIni is regenerated on reload requests. */ - QString m_WorldIniPath; + /** The world.ini contents from which the generator is created and re-created on reload(). */ + cIniFilePtr m_IniFile; /** The generator used for generating biomes. */ std::unique_ptr<cBiomeGen> m_BiomeGen; |