14 lines
400 B
C++
14 lines
400 B
C++
#include "chunk.h"
|
|
|
|
Chunk::Chunk(): BlockArray3d(CHUNK_SIZE_X, CHUNK_SIZE_Y, CHUNK_SIZE_Z) {}
|
|
|
|
Chunk::Chunk(Chunk& chk) : BlockArray3d(chk) {}
|
|
|
|
Chunk::~Chunk() {}
|
|
|
|
void Chunk::RemoveBlock(int x, int y, int z) { Set(x, y, z, BTYPE_AIR); }
|
|
|
|
void Chunk::SetBlock(int x, int y, int z, BlockType type) { Set(x, y, z, type); }
|
|
|
|
BlockType Chunk::GetBlock(int x, int y, int z) const { return Get(x, y, z); }
|