change make_mao_file to use new save function
This commit is contained in:
+4
-3
@@ -10,8 +10,9 @@ if __name__ == '__main__':
|
||||
game_map = Map("./Map")
|
||||
game_map.make_file()
|
||||
|
||||
os.makedirs(CONFIG['map_file']['path'], exist_ok=True)
|
||||
with open(f"{CONFIG['map_file']['path']}/{CONFIG['map_file']['filename']}", "wb") as f:
|
||||
my_pickle.dump(game_map, f, lzma)
|
||||
game_map.save_to_file({
|
||||
"path": f"{CONFIG['map_file']['path']}/{CONFIG['map_file']['filename']}",
|
||||
"compression": lzma
|
||||
})
|
||||
|
||||
print(game_map.story)
|
||||
|
||||
Reference in New Issue
Block a user