summaryrefslogtreecommitdiff
path: root/src/resources/sprite/spritedef.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-10-03 23:36:33 +0300
committerAndrei Karas <akaras@inbox.ru>2016-10-03 23:36:33 +0300
commitc0739f1da1865cc1c9f54ba09fe23ac95bc99f7e (patch)
tree9d389e320b02132be645847a0afbdc1e75cc7bef /src/resources/sprite/spritedef.h
parent15f62e0e81649e9bda6a054d00a63a14972db8d5 (diff)
downloadplus-c0739f1da1865cc1c9f54ba09fe23ac95bc99f7e.tar.gz
plus-c0739f1da1865cc1c9f54ba09fe23ac95bc99f7e.tar.bz2
plus-c0739f1da1865cc1c9f54ba09fe23ac95bc99f7e.tar.xz
plus-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.h3
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;