mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-05-21 21:49:46 +00:00
used compilation to change savanna biome generation and savanna tree teatures using abstractTreeFeature that was missing.
28 lines
1000 B
C++
28 lines
1000 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 buildSurfaceAt(Level* level, Random* random,
|
|
ChunkPrimer* primer, int x, int z,
|
|
double noiseVal) override;
|
|
virtual void decorate(Level* level, Random* random, int xo, int zo) override;
|
|
}; |