-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexport.h
More file actions
26 lines (18 loc) · 746 Bytes
/
Copy pathexport.h
File metadata and controls
26 lines (18 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Serialization/exporting code for converting mazes to "MAZ"-format files.
// Created by Nokko on 2022-04-16.
//
#ifndef RAY_MAZE_EXPORT_H
#define RAY_MAZE_EXPORT_H
#include <stdint.h>
#include "maze.h"
#include "mazformat.h"
// Raw data dumps without width+height info.
struct maze_dump *dump_unpacked(struct maze *m);
struct maze_dump *dump_packed(struct maze *m);
// Write a `.rawmaz` dump to disk.
// Essentially useless, here for debug reasons.
// Just use PM_Unpacked if you want this.
void write_dump(struct maze_dump *d, const char *filename);
// Write a `.maz` file to disk, with the specified filename and packing method.
void write_maz(struct maze *m, uint8_t packing_method, const char *filename);
#endif //RAY_MAZE_EXPORT_H