diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-16 14:25:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-16 14:25:42 +0300 |
commit | 831d396c2911badff986f6836679039de3e1b6f2 (patch) | |
tree | 1c327e8ea9e8a53b6ccd5e765e674c81c4e1352e /src/resources/mapreader.h | |
parent | cf79b26f999ddd795a54b553af3fdb553ec04536 (diff) | |
download | mv-831d396c2911badff986f6836679039de3e1b6f2.tar.gz mv-831d396c2911badff986f6836679039de3e1b6f2.tar.bz2 mv-831d396c2911badff986f6836679039de3e1b6f2.tar.xz mv-831d396c2911badff986f6836679039de3e1b6f2.zip |
improve mapreader class.
Diffstat (limited to 'src/resources/mapreader.h')
-rw-r--r-- | src/resources/mapreader.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/resources/mapreader.h b/src/resources/mapreader.h index 63805ac60..3b3e10023 100644 --- a/src/resources/mapreader.h +++ b/src/resources/mapreader.h @@ -28,6 +28,7 @@ #include <string> class Map; +class MapLayer; class Properties; class Resource; class Tileset; @@ -71,6 +72,16 @@ class MapReader final */ static void readLayer(const XmlNodePtr node, Map *const map); + static bool readBase64Layer(const XmlNodePtr childNode, Map *const map, + MapLayer *const layer, + const std::string &compression, + int &x, int &y, const int w, const int h); + + static bool readCsvLayer(const XmlNodePtr childNode, Map *const map, + MapLayer *const layer, + const std::string &compression, + int &x, int &y, const int w, const int h); + /** * Reads a tile set. */ |