summaryrefslogblamecommitdiff
path: root/src/map/grfio.hpp
blob: aa222c6a16b0c6cca47a55dd849a2674c9239219 (plain) (tree)
1
2
3
4
5
6
7
8
9






                  

                                



                                                                         
                                                       

                   
#ifndef GRFIO_HPP
#define GRFIO_HPP

#include <cstdint>

#include <vector>

#include "../common/mmo.hpp"
#include "../common/strings.hpp"

/// Load a resource into memory, subject to data/resnametable.txt.
/// Normally, resourcename is xxx-y.gat and the file is xxx-y.wlk.
/// Currently there is exactly one .wlk per .gat, but multiples are fine.
std::vector<uint8_t> grfio_reads(MapName resourcename);

#endif // GRFIO_HPP