Navigation Menu

Skip to content

Commit

Permalink
Chunks are now saved to disk using protobuf only. No java object seri…
Browse files Browse the repository at this point in the history
…alization any more!

Note: Old worlds can still be loaded and are converted into the new storage format.

+ added additional decode() method to interface ProtobufHandler<T, M>
* updated file Chunks.proto to reflect latest changes in chunk storage
* updated class WorldRenderer to support the new storage format
* extended interface ChunkStore with new methods saveToFile(File) and loadFromFile(File)

* lots of changes to class ChunkStoreProtobuf to implement the new storage format
+ added support for threads monitoring to class ChunkStoreProtobuf
+ added subclass ProtobufHandler to class ChunkStoreProtobuf
  • Loading branch information
mbrotz committed Apr 21, 2013
1 parent 71ea88b commit a35c3e4
Show file tree
Hide file tree
Showing 9 changed files with 864 additions and 1,250 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/terasology/io/ProtobufHandler.java
Expand Up @@ -15,4 +15,6 @@ public interface ProtobufHandler<T, M extends MessageOrBuilder> {

public T decode(M message);

public void decode(M message, T value);

}

0 comments on commit a35c3e4

Please sign in to comment.