From 25823b36905a84d92f9299ba7f9f0c713141c8fb Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Mon, 18 Feb 2013 19:20:35 -0800 Subject: Strictify map cells Also fix a small but major bug in map_randfreecell. --- src/map/grfio.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/map/grfio.hpp (limited to 'src/map/grfio.hpp') diff --git a/src/map/grfio.hpp b/src/map/grfio.hpp new file mode 100644 index 0000000..fd7b871 --- /dev/null +++ b/src/map/grfio.hpp @@ -0,0 +1,15 @@ +#ifndef GRFIO_HPP +#define GRFIO_HPP + +#include + +#include + +#include "../common/const_array.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 grfio_reads(const_string resourcename); + +#endif // GRFIO_HPP -- cgit v1.2.3-60-g2f50