2928cb6853
cChunk fix - setting a block to the same value doesn't mark chunk dirty (resulted in un-unloadable chunks) git-svn-id: http://mc-server.googlecode.com/svn/trunk@279 0a769ca7-a7f5-676a-18bf-c427514a06d6
38 lines
449 B
C++
38 lines
449 B
C++
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
#include "cChunk.h"
|
|
#include "MersenneTwister.h"
|
|
|
|
|
|
|
|
|
|
|
|
class cWorldGenerator
|
|
{
|
|
public:
|
|
cWorldGenerator(cWorld * a_World);
|
|
~cWorldGenerator();
|
|
|
|
virtual void GenerateChunk(int a_ChunkX, int a_ChunkY, int a_ChunkZ);
|
|
|
|
protected:
|
|
|
|
cWorld * m_World;
|
|
|
|
// Thread-unsafe:
|
|
MTRand r1;
|
|
|
|
virtual void GenerateTerrain( cChunkPtr a_Chunk );
|
|
virtual void GenerateFoliage( cChunkPtr a_Chunk );
|
|
|
|
};
|
|
|
|
|
|
|
|
|