summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/maps.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-24 16:27:58 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-24 16:27:58 +0000
commit93f5fdd067279f953af9440fa7c712985e6ecf34 (patch)
tree177f36448c1dbeedf772d627e654714c704d6b22 /crawl-ref/source/maps.h
parentc633d5d2b956aab18819d51236982db57ee17134 (diff)
downloadcrawl-ref-93f5fdd067279f953af9440fa7c712985e6ecf34.tar.gz
crawl-ref-93f5fdd067279f953af9440fa7c712985e6ecf34.zip
Implemented .des file caching (speeds startup a fair bit): .des files are
parsed only once (unless they're modified again). Crawl also keeps only map stubs in memory (name, place, orient, tags) and loads the map body only when it is actually selected by the dungeon builder. This probably breaks the Windows build, will be fixed soonish. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1637 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/maps.h')
-rw-r--r--crawl-ref/source/maps.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/maps.h b/crawl-ref/source/maps.h
index 6b3ab76089..8274a957e9 100644
--- a/crawl-ref/source/maps.h
+++ b/crawl-ref/source/maps.h
@@ -47,5 +47,15 @@ int random_map_for_tag(const std::string &tag, bool want_minivault,
void add_parsed_map(const map_def &md);
void read_maps();
+void run_map_preludes();
+void reset_map_parser();
+std::string get_descache_path(const std::string &file,
+ const std::string &ext);
+
+extern dlua_chunk map_file_prelude;
+extern std::string lc_desfile;
+extern map_def lc_map;
+extern level_range lc_range;
+extern depth_ranges lc_default_depths;
#endif