mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06:51:51 +00:00
Reference counting for Chunk | changed ChunksLoader
This commit is contained in:
parent
bc9d29cf68
commit
4651ab776b
4 changed files with 18 additions and 12 deletions
|
|
@ -18,12 +18,15 @@ public:
|
|||
bool ready = false;
|
||||
bool accepted = false;
|
||||
bool generated = false;
|
||||
int references = 1;
|
||||
Chunk(int x, int y, int z);
|
||||
~Chunk();
|
||||
|
||||
bool isEmpty();
|
||||
|
||||
Chunk* clone() const;
|
||||
void incref();
|
||||
void decref();
|
||||
};
|
||||
|
||||
#endif /* VOXELS_CHUNK_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue