aboutsummaryrefslogtreecommitdiff
path: root/mapman/src/mapdump.hpp
blob: aa771e6e617bc61d04e6dfe90ac2033ffddd6199 (plain) (blame)
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
27
28
29
30
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