mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
cleanup
This commit is contained in:
parent
7525e31942
commit
e2a9d2871a
2 changed files with 10 additions and 11 deletions
|
|
@ -5,7 +5,6 @@
|
|||
#include <optional>
|
||||
#include <condition_variable>
|
||||
#include <functional>
|
||||
#include <iostream>
|
||||
#include <queue>
|
||||
#include <thread>
|
||||
#include <utility>
|
||||
|
|
|
|||
|
|
@ -29,16 +29,16 @@ public:
|
|||
voxel voxels[CHUNK_VOL] {};
|
||||
std::shared_ptr<Lightmap> lightmap;
|
||||
struct {
|
||||
bool modified : 1;
|
||||
bool ready : 1;
|
||||
bool loaded : 1;
|
||||
bool lighted : 1;
|
||||
bool unsaved : 1;
|
||||
bool loadedLights : 1;
|
||||
bool entities : 1;
|
||||
bool blocksData : 1;
|
||||
bool dirtyHeights : 1;
|
||||
bool inventoriesRemoved : 1;
|
||||
bool modified : 1; // is chunk mesh should be updated
|
||||
bool ready : 1; // is chunk ready for modifications (loaded / generated)
|
||||
bool loaded : 1; // was chunk loaded from region
|
||||
bool lighted : 1; // is lights built (chunk ready to be visualized)
|
||||
bool unsaved : 1; // does chunk contain unsaved changes
|
||||
bool loadedLights : 1; // was lights loaded from cache
|
||||
bool entities : 1; // does chunk contain entities list changes
|
||||
bool blocksData : 1; // does chunk contain block fields changes
|
||||
bool dirtyHeights : 1; // is chunk bottom, top should be recalculated
|
||||
bool inventoriesRemoved : 1; // was block inventories removed since the last save
|
||||
} flags {};
|
||||
|
||||
uint64_t lastRandomTickId = -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue