Closed foxostro closed 12 years ago
Most of the work is done in aba1b7b62eb4b21e4fa1bc507493214eb3dca834, but there is still a bug with the terrain generator which prevents correct voxel data from being generated for points with x<0 or z<0.
02b2894bb7f1a259833d29dbc14025337e4b8357
ChunkStore can query chunks at any point in space. If the requested chunk is in the internal cache then retrieve it directly. Otherwise, the ChunkStore should do what it needs to do to generate the chunk procedurally and add it to the cache.
At first, don't worry about chunk saving/loading to disk or moving work off the main thread. Don't worry about cache eviction or synchronization with the on-disk store. Just have ChunkStore be able to get the chunk at any point in space.