diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-10-03 23:36:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-10-03 23:36:33 +0300 |
commit | c0739f1da1865cc1c9f54ba09fe23ac95bc99f7e (patch) | |
tree | 9d389e320b02132be645847a0afbdc1e75cc7bef /src/resources/sprite/spritedef.h | |
parent | 15f62e0e81649e9bda6a054d00a63a14972db8d5 (diff) | |
download | manaplus-c0739f1da1865cc1c9f54ba09fe23ac95bc99f7e.tar.gz manaplus-c0739f1da1865cc1c9f54ba09fe23ac95bc99f7e.tar.bz2 manaplus-c0739f1da1865cc1c9f54ba09fe23ac95bc99f7e.tar.xz manaplus-c0739f1da1865cc1c9f54ba09fe23ac95bc99f7e.zip |
Add support for set imageset by name for each tag in animation.
Diffstat (limited to 'src/resources/sprite/spritedef.h')
-rw-r--r-- | src/resources/sprite/spritedef.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/sprite/spritedef.h b/src/resources/sprite/spritedef.h index f9e33ee65..ff327b20b 100644 --- a/src/resources/sprite/spritedef.h +++ b/src/resources/sprite/spritedef.h @@ -130,6 +130,8 @@ class SpriteDef final : public Resource void includeSprite(const XmlNodePtr includeNode, const int variant); + const ImageSet *getImageSet(const std::string &imageSetName) const; + /** * Complete missing actions by copying existing ones. */ @@ -149,6 +151,7 @@ class SpriteDef final : public Resource typedef std::map<std::string, ImageSet*> ImageSets; typedef ImageSets::iterator ImageSetIterator; + typedef ImageSets::const_iterator ImageSetCIterator; typedef std::map<std::string, Action*> ActionMap; typedef std::map<unsigned, ActionMap*> Actions; typedef Actions::const_iterator ActionsConstIter; |