2012-01-29 11:28:19 -08:00
|
|
|
|
|
|
|
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
|
|
|
|
2011-12-26 15:23:05 -08:00
|
|
|
#include "cWorldGenerator_Test.h"
|
|
|
|
#include "cChunk.h"
|
|
|
|
#include "BlockID.h"
|
|
|
|
|
2012-01-29 11:28:19 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-18 09:53:22 -08:00
|
|
|
void cWorldGenerator_Test::GenerateTerrain(int a_ChunkX, int a_ChunkY, int a_ChunkZ, char * a_BlockData)
|
2011-12-26 15:23:05 -08:00
|
|
|
{
|
2012-02-18 09:53:22 -08:00
|
|
|
memset(a_BlockData, E_BLOCK_DIRT, cChunk::c_NumBlocks);
|
2012-03-03 12:55:16 -08:00
|
|
|
for(int x = 0; x < cChunk::c_ChunkWidth; x++)
|
2011-12-26 15:23:05 -08:00
|
|
|
{
|
2012-03-03 12:55:16 -08:00
|
|
|
for(int z = 0; z < cChunk::c_ChunkWidth; z++)
|
2011-12-26 15:23:05 -08:00
|
|
|
{
|
2012-02-18 09:53:22 -08:00
|
|
|
a_BlockData[MakeIndex(x, 0, z)] = E_BLOCK_BEDROCK;
|
2011-12-26 15:23:05 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-02-18 09:53:22 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-18 11:18:16 -08:00
|
|
|
void cWorldGenerator_Test::GenerateFoliage(int a_ChunkX, int a_ChunkY, int a_ChunkZ)
|
2011-12-26 15:23:05 -08:00
|
|
|
{
|
2012-02-18 11:18:16 -08:00
|
|
|
(void)a_ChunkX;
|
|
|
|
(void)a_ChunkY;
|
|
|
|
(void)a_ChunkZ;
|
2012-02-18 09:53:22 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|