From 41bfefc9e08b0ae4a8de6e96e33feb3e17110011 Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Mon, 13 Apr 2026 15:45:58 +0300 Subject: Add function to save map --- map.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'map.h') diff --git a/map.h b/map.h index e9c5bc3..b2b3ff4 100644 --- a/map.h +++ b/map.h @@ -46,6 +46,8 @@ Map rbt_maze_map(size_t width, size_t height, unsigned int seed); * ....#.#... * ..@....... */ Map file_plaintext_map(char *filename, size_t *width, size_t *height, Position *start_pos, Position *end_pos); +/* The reverse of above */ +void map_to_file_plaintext(char *filename, Map map, size_t width, size_t height, Position start, Position end); /* Draw the map. Bet you didn't expect that. * path could be NULL to draw a map with no path. So can cursor, frontier and visited */ -- cgit v1.2.3