This commit is contained in:
MarcEricMartel
2021-11-30 19:55:11 -05:00
parent de7945038c
commit 97ffc34e24
26 changed files with 221 additions and 203 deletions

View File

@@ -22,14 +22,14 @@ class Chunk {
public:
Chunk(int x, int y);
Chunk(int x, int y, char data[CHUNK_SIZE_X * CHUNK_SIZE_Y * CHUNK_SIZE_Z]);
~Chunk();
void RemoveBlock(int x, int y, int z, World* world);
void SetBlock(int x, int y, int z, BlockType type, World* world);
BlockType GetBlock(int x, int y, int z);
void CheckNeighbors(int x, int z, World* world);
int GetPosX() const;
int GetPosY() const;
void GetPosition(int& x, int& y) const;
void Update(BlockInfo* blockinfo[BTYPE_LAST], World* world);