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