mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-06-08 23:13:00 +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
40 lines
762 B
C++
40 lines
762 B
C++
#pragma once
|
|
|
|
#include "ArrayWithLength.h"
|
|
|
|
class LevelType;
|
|
|
|
#ifndef _CONTENT_PACAKGE
|
|
#define _BIOME_OVERRIDE
|
|
#endif
|
|
|
|
class Layer
|
|
{
|
|
private:
|
|
int64_t seed;
|
|
|
|
protected:
|
|
shared_ptr<Layer>parent;
|
|
|
|
protected:
|
|
int64_t rval;
|
|
int64_t seedMixup;
|
|
|
|
public:
|
|
static LayerArray getDefaultLayers(int64_t seed, LevelType *levelType, void* superflatConfig = nullptr);
|
|
|
|
Layer(int64_t seedMixup);
|
|
|
|
virtual void init(int64_t seed);
|
|
bool isOcean(int biomeId);
|
|
bool isSame(int biomeIdA, int biomeIdB);
|
|
virtual void initRandom(int64_t x, int64_t y);
|
|
|
|
protected:
|
|
int nextRandom(int max);
|
|
int random(int i, int j, int k, int l);
|
|
int random(int i, int j);
|
|
int modeOrRandom(int i, int j, int k, int l);
|
|
public:
|
|
virtual intArray getArea(int xo, int yo, int w, int h) = 0;
|
|
}; |