first commit
This commit is contained in:
31
Minecraft.World/VillageFeature.h
Normal file
31
Minecraft.World/VillageFeature.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#pragma once
|
||||
#include "StructureFeature.h"
|
||||
#include "StructureStart.h"
|
||||
class Biome;
|
||||
|
||||
class VillageFeature : public StructureFeature
|
||||
{
|
||||
private:
|
||||
const int villageSizeModifier;
|
||||
public:
|
||||
static void staticCtor();
|
||||
static 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;
|
||||
};
|
||||
Reference in New Issue
Block a user