- write(f, 'MAP ' + stringify_yx(game.world.maps[(0,0)].size))
- for y, line in game.world.maps[(0,0)].lines():
- write(f, 'TERRAIN_LINE %5s %s' % (y, quote(line)))
+ write(f, 'SEED %s' % game.world.rand.prngod_seed)
+ for map_pos in game.world.maps:
+ write(f, 'MAP ' + stringify_yx(map_pos) + ' ' +
+ stringify_yx(game.world.maps[(0,0)].size))
+ for map_pos in game.world.maps:
+ for y, line in game.world.maps[map_pos].lines():
+ write(f, 'TERRAIN_LINE %s %5s %s' % (stringify_yx(map_pos),
+ y, quote(line)))