summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-11 20:59:12 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-11 22:24:04 +0300
commitaf8863d722f06153877d289b939b5ba84713621d (patch)
treecbb97e2ea203d40615c49803c50b7f3c82f53ad6 /src/resources/mapreader.h
parent0148cb8ad0e071464f09ada9eb41625dee038cb8 (diff)
downloadmanaverse-af8863d722f06153877d289b939b5ba84713621d.tar.gz
manaverse-af8863d722f06153877d289b939b5ba84713621d.tar.bz2
manaverse-af8863d722f06153877d289b939b5ba84713621d.tar.xz
manaverse-af8863d722f06153877d289b939b5ba84713621d.zip
add support for map layer replacments.
This can be used for mods.
Diffstat (limited to 'src/resources/mapreader.h')
-rw-r--r--src/resources/mapreader.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/resources/mapreader.h b/src/resources/mapreader.h
index 4f84f1a1a..27cbd665b 100644
--- a/src/resources/mapreader.h
+++ b/src/resources/mapreader.h
@@ -59,6 +59,11 @@ class MapReader final
const std::string &restrict realFilename)
A_WARN_UNUSED;
+ /**
+ * Reads a map layer and adds it to the given map.
+ */
+ static void readLayer(const XmlNodePtr node, Map *const map);
+
private:
/**
* Reads the properties element.
@@ -70,11 +75,6 @@ class MapReader final
static void readProperties(const XmlNodePtrConst node,
Properties *const props);
- /**
- * Reads a map layer and adds it to the given map.
- */
- static void readLayer(const XmlNodePtr node, Map *const map);
-
static bool readBase64Layer(const XmlNodePtrConst childNode,
Map *const map,
MapLayer *const layer,
@@ -100,6 +100,12 @@ class MapReader final
Map *const map) A_WARN_UNUSED;
static void updateMusic(Map *const map);
+
+ static void addLayerToList(const std::string &fileName);
+
+ static void loadLayers(const std::string &path);
+
+ static void unloadTempLayers();
};
#endif // RESOURCES_MAPREADER_H