Beaucoup de choses. (Fin du TP1 si pas d'épiphanie)

This commit is contained in:
Marc-Eric Martel
2021-09-17 10:03:32 -04:00
parent 48d35dcf7c
commit 4deb7418c3
10 changed files with 129 additions and 5 deletions

View File

@@ -1 +1,13 @@
#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); }