- write(f, 'MAP ' + stringify_yx(game.world.map_.size))
- for y, line in game.world.map_.lines():
- write(f, 'TERRAIN_LINE %5s %s' % (y, quote(line)))
+ 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)))