mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-06 16:47:15 +00:00
33 lines
802 B
C++
33 lines
802 B
C++
#pragma once
|
|
#include "StructureFeature.h"
|
|
#include "../Structures/StructureStart.h"
|
|
class Biome;
|
|
|
|
class VillageFeature : public StructureFeature {
|
|
private:
|
|
const int villageSizeModifier;
|
|
|
|
public:
|
|
static void staticCtor();
|
|
static std::vector<Biome*> allowedBiomes;
|
|
VillageFeature(int villageSizeModifier, int iXZSize);
|
|
|
|
protected:
|
|
virtual bool isFeatureChunk(int x, int z, bool bIsSuperflat = false);
|
|
virtual StructureStart* createStructureStart(int x, int z);
|
|
|
|
private:
|
|
class VillageStart : public StructureStart {
|
|
private:
|
|
bool valid;
|
|
int m_iXZSize;
|
|
|
|
public:
|
|
VillageStart(Level* level, Random* random, int chunkX, int chunkZ,
|
|
int villageSizeModifier, int iXZSize);
|
|
bool isValid();
|
|
};
|
|
|
|
int m_iXZSize;
|
|
};
|