aboutsummaryrefslogtreecommitdiff
path: root/mapman/src/mapdump.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2023-09-09 20:09:50 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2023-09-09 20:09:50 -0400
commit93cf929f29dea490ed60e5300cacdd99886c988e (patch)
tree0f8669c56e22a287047ee20846b92f1580d7364f /mapman/src/mapdump.hpp
parent40432e083b11271cf3148b9c38156cf759436699 (diff)
downloadmeteor-trashy-addon-93cf929f29dea490ed60e5300cacdd99886c988e.tar.xz
Add the standalone portion of mapman.
Diffstat (limited to 'mapman/src/mapdump.hpp')
-rw-r--r--mapman/src/mapdump.hpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/mapman/src/mapdump.hpp b/mapman/src/mapdump.hpp
new file mode 100644
index 0000000..aa771e6
--- /dev/null
+++ b/mapman/src/mapdump.hpp
@@ -0,0 +1,31 @@
+#ifndef MAPDUMP_HPP
+#define MAPDUMP_HPP
+
+#include <cstdint>
+#include <array>
+#include <string>
+#include <vector>
+
+#include "utils.hpp"
+
+struct map_t
+{
+ int id;
+ std::string custom_name;
+ map_data_t map_data;
+};
+
+struct map_group_t
+{
+ std::string title;
+ std::string author;
+ int hc;
+ int vc;
+ std::vector<int> ids;
+ std::vector<bool> populated;
+};
+
+bool load_dumps(const char *fn, std::vector<map_t> &dumps);
+std::vector<int> load_tally(const char *fn);
+
+#endif