|
|
@@ -48,7 +48,7 @@ private:
|
|
|
Framework::Critical prioLightCs;
|
|
|
Framework::Critical structurCs;
|
|
|
Framework::RCArray<Chunk> removedChunks;
|
|
|
- Framework::Critical removedChunksCs;
|
|
|
+ mutable Framework::Critical removedChunksCs;
|
|
|
Framework::RCArray<MultiblockStructure> structures;
|
|
|
MultiblockStructureManager* structureManager;
|
|
|
DimensionMap* map;
|
|
|
@@ -77,10 +77,10 @@ public:
|
|
|
void thread() override;
|
|
|
|
|
|
Framework::Either<Block*, int> zBlock(
|
|
|
- Framework::Vec3<int> location, OUT Chunk** zChunk);
|
|
|
- Block* zRealBlockInstance(Framework::Vec3<int> location);
|
|
|
- const Block* zBlockOrDefault(Framework::Vec3<int> location);
|
|
|
- int getBlockType(Framework::Vec3<int> location);
|
|
|
+ Framework::Vec3<int> location, OUT Chunk** zChunk) const;
|
|
|
+ Block* zRealBlockInstance(Framework::Vec3<int> location) const;
|
|
|
+ const Block* zBlockOrDefault(Framework::Vec3<int> location) const;
|
|
|
+ int getBlockType(Framework::Vec3<int> location) const;
|
|
|
void placeBlock(
|
|
|
Framework::Vec3<int> location, Framework::Either<Block*, int> block);
|
|
|
void sendBlockInfo(Framework::Vec3<int> location);
|
|
|
@@ -88,14 +88,14 @@ public:
|
|
|
void setChunk(Chunk* chunk, Framework::Punkt center);
|
|
|
void save(Framework::Text worldDir) const;
|
|
|
int getDimensionId() const;
|
|
|
- bool hasChunck(int x, int y);
|
|
|
+ bool hasChunck(int x, int y) const;
|
|
|
bool reviveChunk(int x, int y);
|
|
|
Chunk* zChunk(Framework::Punkt wPos) const;
|
|
|
float getGravity() const;
|
|
|
void removeOldChunks();
|
|
|
Entity* zEntity(int id) const;
|
|
|
Entity* zNearestEntity(
|
|
|
- Framework::Vec3<float> pos, std::function<bool(Entity*)> filter);
|
|
|
+ Framework::Vec3<float> pos, std::function<bool(Entity*)> filter) const;
|
|
|
void removeEntity(int id);
|
|
|
void removeSubscriptions(Entity* zEntity);
|
|
|
void updateLightning(Framework::Vec3<int> location);
|
|
|
@@ -108,7 +108,7 @@ public:
|
|
|
MultiblockStructure* zStructureById(__int64 id);
|
|
|
void requestStopAndWait();
|
|
|
void updateMap(int x, int y, int height);
|
|
|
- int getChunkCount();
|
|
|
+ int getChunkCount() const;
|
|
|
double getCurrentDayTime() const;
|
|
|
double getNightDuration() const;
|
|
|
double getNightTransitionDuration() const;
|