summaryrefslogtreecommitdiffstats
path: root/src/Generating/StructGen.h
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-08-10 11:40:33 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2014-08-10 11:40:33 +0200
commitecfae286064b4a8fcf6e4df38c09e8055e83de33 (patch)
tree90ea4db9300a1a735484eee8fb2104d001c168f7 /src/Generating/StructGen.h
parentRemoved an old and outdated comment. (diff)
downloadcuberite-ecfae286064b4a8fcf6e4df38c09e8055e83de33.tar
cuberite-ecfae286064b4a8fcf6e4df38c09e8055e83de33.tar.gz
cuberite-ecfae286064b4a8fcf6e4df38c09e8055e83de33.tar.bz2
cuberite-ecfae286064b4a8fcf6e4df38c09e8055e83de33.tar.lz
cuberite-ecfae286064b4a8fcf6e4df38c09e8055e83de33.tar.xz
cuberite-ecfae286064b4a8fcf6e4df38c09e8055e83de33.tar.zst
cuberite-ecfae286064b4a8fcf6e4df38c09e8055e83de33.zip
Diffstat (limited to 'src/Generating/StructGen.h')
-rw-r--r--src/Generating/StructGen.h26
1 files changed, 22 insertions, 4 deletions
diff --git a/src/Generating/StructGen.h b/src/Generating/StructGen.h
index 9176bc192..e2fe8bc1a 100644
--- a/src/Generating/StructGen.h
+++ b/src/Generating/StructGen.h
@@ -76,11 +76,29 @@ class cStructGenOreNests :
public cFinishGen
{
public:
- cStructGenOreNests(int a_Seed) : m_Noise(a_Seed), m_Seed(a_Seed) {}
-
+ struct OreInfo
+ {
+ BLOCKTYPE BlockType; // The type of the nest.
+ int MaxHeight; // The highest possible a nest can occur
+ int NumNests; // How many nests per chunk
+ int NestSize; // The amount of blocks a nest can have.
+ };
+
+ typedef std::vector<OreInfo> OreList;
+
+ cStructGenOreNests(int a_Seed, OreList a_OreList, BLOCKTYPE a_ToReplace) :
+ m_Noise(a_Seed),
+ m_Seed(a_Seed),
+ m_OreList(a_OreList),
+ m_ToReplace(a_ToReplace)
+ {}
+
protected:
- cNoise m_Noise;
- int m_Seed;
+ cNoise m_Noise;
+ int m_Seed;
+
+ OreList m_OreList; // A list of possible ores.
+ BLOCKTYPE m_ToReplace;
// cFinishGen override:
virtual void GenFinish(cChunkDesc & a_ChunkDesc) override;