- cancelLoad
void cancelLoad(ChunkWorldPos cwp)
Undocumented in source. Be warned that the author may not have intended to support it.
- init
void init(WorldDb worldDb, uint numGenWorkers, BlockInfoTable blocks, bool saveUnmodifiedChunks)
Undocumented in source. Be warned that the author may not have intended to support it.
- loadChunk
void loadChunk(ChunkWorldPos cwp)
Undocumented in source. Be warned that the author may not have intended to support it.
- loadQueueSpaceAvaliable
size_t loadQueueSpaceAvaliable()
Undocumented in source. Be warned that the author may not have intended to support it.
- notify
void notify()
Undocumented in source. Be warned that the author may not have intended to support it.
- pushSaveHandler
void pushSaveHandler(IoHandler ioHandler)
Undocumented in source. Be warned that the author may not have intended to support it.
- receiveChunk
void receiveChunk(shared(SharedQueue)* queue, bool needsSave)
Undocumented in source. Be warned that the author may not have intended to support it.
- save
void save()
Performs save of all modified chunks.
Modified chunks are those that were committed.
Perform save right after commit.
- saveChunk
void saveChunk(ChunkWorldPos cwp)
Undocumented in source. Be warned that the author may not have intended to support it.
- stop
void stop()
Undocumented in source. Be warned that the author may not have intended to support it.
- update
void update()
Undocumented in source. Be warned that the author may not have intended to support it.
- canceledTasks
SharedHashSet!TaskId canceledTasks;
Undocumented in source.
- chunkManager
ChunkManager chunkManager;
Undocumented in source.
- chunkTasks
TaskId[ChunkWorldPos] chunkTasks;
Undocumented in source.
- genWorkers
Worker[] genWorkers;
Undocumented in source.
- generatorGetter
IGenerator delegate(DimensionId dimensionId) generatorGetter;
Undocumented in source.
- loadResQueue
SharedQueue loadResQueue;
Undocumented in source.
- loadTaskQueue
SharedQueue loadTaskQueue;
Undocumented in source.
- numSuccessfulCancelations
size_t numSuccessfulCancelations;
Undocumented in source.
- numWastedLoads
size_t numWastedLoads;
Undocumented in source.
- onChunkLoadedHandler
void delegate(ChunkWorldPos cwp, ChunkLayerItem[] layers, bool needsSave) onChunkLoadedHandler;
Undocumented in source.
- onChunkSavedHandler
void delegate(ChunkWorldPos cwp, ChunkLayerTimestampItem[] timestamps) onChunkSavedHandler;
Undocumented in source.
- prevReceived
size_t prevReceived;
Undocumented in source.
- saveResQueue
SharedQueue saveResQueue;
Undocumented in source.
- saveTaskQueue
SharedQueue saveTaskQueue;
Undocumented in source.
- saveUnmodifiedChunks
bool saveUnmodifiedChunks;
Undocumented in source.
- totalReceived
size_t totalReceived;
Undocumented in source.
- workAvaliable
Condition workAvaliable;
Undocumented in source.
- workAvaliableMutex
Mutex workAvaliableMutex;
Undocumented in source.