ChunkProvider

Undocumented in source.

Members

Functions

cancelLoad
void cancelLoad(ChunkWorldPos cwp)
Undocumented in source. Be warned that the author may not have intended to support it.
endChunkSave
void endChunkSave(size_t headerPos, ChunkHeaderItem header)
Undocumented in source. Be warned that the author may not have intended to support it.
init
void init(WorldDb worldDb, uint numGenWorkers, BlockInfoTable blocks)
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.
pushLayer
void pushLayer(ChunkLayerItem layer)
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.
startChunkSave
size_t startChunkSave()
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.

Variables

canceledTasks
SharedHashSet!TaskId canceledTasks;
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.
totalReceived
size_t totalReceived;
Undocumented in source.
workAvaliable
Condition workAvaliable;
Undocumented in source.
workAvaliableMutex
Mutex workAvaliableMutex;
Undocumented in source.

Meta