This commit is contained in:
MarcEricMartel
2021-11-19 11:11:08 -05:00
parent ad8f414840
commit c6c1582904
4 changed files with 96 additions and 48 deletions

View File

@@ -24,14 +24,16 @@ class Chunk {
Chunk(int x, int y);
~Chunk();
void RemoveBlock(int x, int y, int z);
void SetBlock(int x, int y, int z, BlockType type);
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);
void Update(BlockInfo* blockinfo[BTYPE_LAST], World* world);
void Render() const;
bool IsDirty() const;
void MakeDirty();
};
#endif // CHUNK_H__