ChunkEditor

Undocumented in source.

Constructors

this
this(ubyte _numLayers, ChunkManager _chunkManager)
Undocumented in source.

Members

Functions

commitSnapshots
void commitSnapshots(TimestampType currentTime)

called at the end of tick

getOrCreateWriteBuffer
WriteBuffer* getOrCreateWriteBuffer(ChunkWorldPos cwp, ubyte layer, WriteBufferPolicy policy, bool allowNonLoaded)

Returns writeable copy of current chunk snapshot. This buffer is valid until commit. After commit this buffer becomes next immutable snapshot. Returns null if chunk is not added and/or not loaded. If write buffer was not yet created then it is created based on policy.

getWriteBuffers
WriteBuffer[ChunkWorldPos] getWriteBuffers(ubyte layer)

Returns all write buffers. You can modify data in write buffers, but not hashmap itself. Can be used for metadata update before commit.

Variables

addServerObserverHandler
void delegate(ChunkWorldPos) addServerObserverHandler;
Undocumented in source.
removeServerObserverHandler
void delegate(ChunkWorldPos) removeServerObserverHandler;
Undocumented in source.

Meta