mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-07-13 22:47:04 +00:00
biomes like extreme hills now have correct blocks sky and water, also correct grass. another thing is that now in the world spawns mutated biomes and it is acceptable as a world generation. i dont thjink it is the same because seeds are not giving me the ones from youtube videos but we will work on it later. For now it works and it is acceptable. spawns a variety of biomes that before was spawned in a random way, now depending on next biomes and temperature
27 lines
1,018 B
C++
27 lines
1,018 B
C++
|
|
#pragma once
|
|
#include "Biome.h"
|
|
#include "MutatedBiome.h"
|
|
|
|
class SavannaBiome : public Biome
|
|
{
|
|
public:
|
|
SavannaBiome(int id);
|
|
virtual Feature* getTreeFeature(Random* random) override;
|
|
virtual int getFolageColor() const override;
|
|
virtual int getGrassColor() const override;
|
|
virtual Feature* getFlowerFeature(Random* random, int x, int y, int z) override;
|
|
virtual int getRandomDoublePlantType(Random* random) override;
|
|
virtual void decorate(Level* level, Random* random, int xo, int zo) override;
|
|
virtual Biome* createMutatedCopy(int newId);
|
|
};
|
|
|
|
class MutatedSavannaBiome : public MutatedBiome
|
|
{
|
|
public:
|
|
MutatedSavannaBiome(int id, Biome* baseBiome);
|
|
virtual void buildSurfaceAtDefault(Level* level, Random* random,
|
|
byte* chunkBlocks, int x, int z,
|
|
double noiseVal) override;
|
|
virtual void decorate(Level* level, Random* random, int xo, int zo) override;
|
|
}; |