diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-09 18:49:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-09 18:49:05 +0300 |
commit | b9d66c41246fef56e41f600b5523a5ff1a29a1c8 (patch) | |
tree | 3e6e546d393975b83ae951561cb6b05d920ef048 /src/map.h | |
parent | 8bed92098b94ebe14dfd9d622585fbfc150a8757 (diff) | |
download | plus-b9d66c41246fef56e41f600b5523a5ff1a29a1c8.tar.gz plus-b9d66c41246fef56e41f600b5523a5ff1a29a1c8.tar.bz2 plus-b9d66c41246fef56e41f600b5523a5ff1a29a1c8.tar.xz plus-b9d66c41246fef56e41f600b5523a5ff1a29a1c8.zip |
Improve map loading speed.
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; |