summaryrefslogtreecommitdiff
path: root/src/resources/mapdb.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-25 01:40:43 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-30 02:57:13 +0300
commit3a2bab265768c219b0c077eef10b69dfe8158131 (patch)
treed5274ccdbf40c1a57e8f1541a74e106fde4fbcbb /src/resources/mapdb.h
parentabc334f8e88253e5393e27594c07cc56525b4e9a (diff)
downloadmv-3a2bab265768c219b0c077eef10b69dfe8158131.tar.gz
mv-3a2bab265768c219b0c077eef10b69dfe8158131.tar.bz2
mv-3a2bab265768c219b0c077eef10b69dfe8158131.tar.xz
mv-3a2bab265768c219b0c077eef10b69dfe8158131.zip
Load additional info about maps from maps.xml.
For now here only atlases information.
Diffstat (limited to 'src/resources/mapdb.h')
-rw-r--r--src/resources/mapdb.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/resources/mapdb.h b/src/resources/mapdb.h
index 0d13428ee..b8fd954fa 100644
--- a/src/resources/mapdb.h
+++ b/src/resources/mapdb.h
@@ -22,19 +22,29 @@
#ifndef MAPDB_H
#define MAPDB_H
+#include "utils/stringvector.h"
+
#include <map>
-#include <string>
/**
* Color information database.
*/
namespace MapDB
{
+ struct MapInfo
+ {
+ std::string atlas;
+ };
+
/**
* Loads the map remap data from <code>maps\remap.xml</code>.
*/
void load();
+ void loadRemap();
+
+ void loadInfo();
+
/**
* Clear the remap data
*/
@@ -45,6 +55,10 @@ namespace MapDB
// Maps DB
typedef std::map<std::string, std::string> Maps;
typedef Maps::iterator MapIterator;
+ // map to infos map
+ typedef std::map<std::string, MapInfo> MapInfos;
+ // atlas to files map
+ typedef std::map<std::string, StringVect> Atlases;
}
#endif