Add the M01 serial simulation reference and per-tick replay
This commit is contained in:
1 parent
904bdf8827
commit
8d2870a6f8
11 files changed
+538
-28
No files matched your search
@@ -609,7 +609,7 @@ void World::write_save(std::ostream& stream) const {
|
||||
WorldSaveCodec::body(archive, *this, save_version);
|
||||
}
|
||||
|
||||
std::unique_ptr<World> World::read_save(std::istream& stream, std::size_t workers) {
|
||||
std::unique_ptr<World> World::read_save(std::istream& stream, std::size_t workers, ExecutionMode mode) {
|
||||
SaveReader archive(stream);
|
||||
for (char letter : signature) {
|
||||
char actual = 0;
|
||||
@@ -626,7 +626,7 @@ std::unique_ptr<World> World::read_save(std::istream& stream, std::size_t worker
|
||||
archive.field(seed);
|
||||
archive.field(width);
|
||||
archive.field(height);
|
||||
auto world = std::make_unique<World>(seed, width, height, workers);
|
||||
auto world = std::make_unique<World>(seed, width, height, workers, mode);
|
||||
WorldSaveCodec::body(archive, *world, version);
|
||||
archive.finish();
|
||||
if (version < 5) {
|
||||
|
||||
Reference in new issue
Block a user