summaryrefslogtreecommitdiff
path: root/src/resources/db
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-19 18:05:14 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-19 18:05:14 +0300
commitf3fdd048e6265ab2c6e88ddff21dffd9409c03db (patch)
treea6a564e2ecc3a081aabf140991770765a3d6c1e1 /src/resources/db
parent0fd434e3102a5aad5e6f24cf384f03c527ce7c04 (diff)
downloadplus-f3fdd048e6265ab2c6e88ddff21dffd9409c03db.tar.gz
plus-f3fdd048e6265ab2c6e88ddff21dffd9409c03db.tar.bz2
plus-f3fdd048e6265ab2c6e88ddff21dffd9409c03db.tar.xz
plus-f3fdd048e6265ab2c6e88ddff21dffd9409c03db.zip
Move mapinfo into separate file.
Diffstat (limited to 'src/resources/db')
-rw-r--r--src/resources/db/mapdb.cpp2
-rw-r--r--src/resources/db/mapdb.h14
2 files changed, 3 insertions, 13 deletions
diff --git a/src/resources/db/mapdb.cpp b/src/resources/db/mapdb.cpp
index 20d108f13..ea734a150 100644
--- a/src/resources/db/mapdb.cpp
+++ b/src/resources/db/mapdb.cpp
@@ -177,7 +177,7 @@ const std::string MapDB::getMapName(const std::string &name)
return name;
}
-const MapDB::MapInfo *MapDB::getMapAtlas(const std::string &name)
+const MapInfo *MapDB::getMapAtlas(const std::string &name)
{
const MapInfoIter it = mInfos.find(name);
if (it == mInfos.end())
diff --git a/src/resources/db/mapdb.h b/src/resources/db/mapdb.h
index c2fbb3137..ae001ccad 100644
--- a/src/resources/db/mapdb.h
+++ b/src/resources/db/mapdb.h
@@ -24,6 +24,8 @@
#include "utils/stringvector.h"
+#include "resources/mapinfo.h"
+
#include <map>
#include "localconsts.h"
@@ -33,18 +35,6 @@
*/
namespace MapDB
{
- struct MapInfo
- {
- MapInfo() :
- atlas(),
- files(nullptr)
- {
- }
-
- std::string atlas;
- const StringVect *files;
- };
-
/**
* Loads the map remap data from <code>maps\remap.xml</code>.
*/