summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-09 18:49:05 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-09 18:49:05 +0300
commitb9d66c41246fef56e41f600b5523a5ff1a29a1c8 (patch)
tree3e6e546d393975b83ae951561cb6b05d920ef048 /src/map.h
parent8bed92098b94ebe14dfd9d622585fbfc150a8757 (diff)
downloadmv-b9d66c41246fef56e41f600b5523a5ff1a29a1c8.tar.gz
mv-b9d66c41246fef56e41f600b5523a5ff1a29a1c8.tar.bz2
mv-b9d66c41246fef56e41f600b5523a5ff1a29a1c8.tar.xz
mv-b9d66c41246fef56e41f600b5523a5ff1a29a1c8.zip
Improve map loading speed.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map.h b/src/map.h
index 79c9e8b2b..0c1c5b098 100644
--- a/src/map.h
+++ b/src/map.h
@@ -433,6 +433,10 @@ class Map : public Properties, public ConfigListener
std::string getObjectData(unsigned x, unsigned y, int type);
+ void indexTilesets();
+
+ void clearIndexedTilesets();
+
protected:
friend class Actor;
@@ -516,6 +520,9 @@ class Map : public Properties, public ConfigListener
float mOpacity;
int mOpenGL;
int mPvp;
+ bool mTilesetsIndexed;
+ Tileset** mIndexedTilesets;
+ int mIndexedTilesetsSize;
SpecialLayer *mSpecialLayer;
SpecialLayer *mTempLayer;