summaryrefslogtreecommitdiffstats
path: root/source/Generating/ComposableGenerator.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-17 18:55:03 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-17 18:55:03 +0100
commit1ed3b3aed2e538af2c3bffa41f54a30ac6535f12 (patch)
tree173949d9abcbd08d9c3535704419a372e52c7c8a /source/Generating/ComposableGenerator.h
parentProbabDistrib: fixed definition string parsing with nonzero start (diff)
downloadcuberite-1ed3b3aed2e538af2c3bffa41f54a30ac6535f12.tar
cuberite-1ed3b3aed2e538af2c3bffa41f54a30ac6535f12.tar.gz
cuberite-1ed3b3aed2e538af2c3bffa41f54a30ac6535f12.tar.bz2
cuberite-1ed3b3aed2e538af2c3bffa41f54a30ac6535f12.tar.lz
cuberite-1ed3b3aed2e538af2c3bffa41f54a30ac6535f12.tar.xz
cuberite-1ed3b3aed2e538af2c3bffa41f54a30ac6535f12.tar.zst
cuberite-1ed3b3aed2e538af2c3bffa41f54a30ac6535f12.zip
Diffstat (limited to '')
-rw-r--r--source/Generating/ComposableGenerator.h30
1 files changed, 4 insertions, 26 deletions
diff --git a/source/Generating/ComposableGenerator.h b/source/Generating/ComposableGenerator.h
index b6f946eb3..fca2c26c6 100644
--- a/source/Generating/ComposableGenerator.h
+++ b/source/Generating/ComposableGenerator.h
@@ -18,6 +18,7 @@ See http://forum.mc-server.org/showthread.php?tid=409 for details.
#pragma once
#include "ChunkGenerator.h"
+#include "ChunkDesc.h"
@@ -72,15 +73,7 @@ class cTerrainCompositionGen
public:
virtual ~cTerrainCompositionGen() {} // Force a virtual destructor in descendants
- virtual void ComposeTerrain(
- int a_ChunkX, int a_ChunkZ,
- cChunkDef::BlockTypes & a_BlockTypes, // BlockTypes to be generated (the whole array gets initialized, even air)
- cChunkDef::BlockNibbles & a_BlockMeta, // BlockMetas to be generated (the whole array gets initialized)
- const cChunkDef::HeightMap & a_HeightMap, // The height map to fit
- const cChunkDef::BiomeMap & a_BiomeMap, // Biomes to adhere to
- cEntityList & a_Entities, // Entitites may be generated along with the terrain
- cBlockEntityList & a_BlockEntities // Block entitites may be generated (chests / furnaces / ...)
- ) = 0;
+ virtual void ComposeTerrain(cChunkDesc & a_ChunkDesc) = 0;
} ;
@@ -98,14 +91,7 @@ class cStructureGen
public:
virtual ~cStructureGen() {} // Force a virtual destructor in descendants
- virtual void GenStructures(
- int a_ChunkX, int a_ChunkZ,
- cChunkDef::BlockTypes & a_BlockTypes, // Block types to read and change
- cChunkDef::BlockNibbles & a_BlockMeta, // Block meta to read and change
- cChunkDef::HeightMap & a_HeightMap, // Height map to read and change by the current data
- cEntityList & a_Entities, // Entities may be added or deleted
- cBlockEntityList & a_BlockEntities // Block entities may be added or deleted
- ) = 0;
+ virtual void GenStructures(cChunkDesc & a_ChunkDesc) = 0;
} ;
typedef std::list<cStructureGen *> cStructureGenList;
@@ -122,15 +108,7 @@ class cFinishGen
public:
virtual ~cFinishGen() {} // Force a virtual destructor in descendants
- virtual void GenFinish(
- int a_ChunkX, int a_ChunkZ,
- cChunkDef::BlockTypes & a_BlockTypes, // Block types to read and change
- cChunkDef::BlockNibbles & a_BlockMeta, // Block meta to read and change
- cChunkDef::HeightMap & a_HeightMap, // Height map to read and change by the current data
- const cChunkDef::BiomeMap & a_BiomeMap, // Biomes to adhere to
- cEntityList & a_Entities, // Entities may be added or deleted
- cBlockEntityList & a_BlockEntities // Block entities may be added or deleted
- ) = 0;
+ virtual void GenFinish(cChunkDesc & a_ChunkDesc) = 0;
} ;
typedef std::list<cFinishGen *> cFinishGenList;