From 6afd82349bca7e8f5580057e3c1b9133e51c60c2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 29 Apr 2016 18:16:18 +0300 Subject: Add name into Animation memory object. --- src/resources/animation/animation.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/resources/animation/animation.h') diff --git a/src/resources/animation/animation.h b/src/resources/animation/animation.h index 0c0b7c6e4..55668f324 100644 --- a/src/resources/animation/animation.h +++ b/src/resources/animation/animation.h @@ -45,6 +45,8 @@ class Animation final : public MemoryCounter public: Animation() noexcept; + explicit Animation(const std::string &name) noexcept; + /** * Appends a new animation at the end of the sequence. */ @@ -86,6 +88,9 @@ class Animation final : public MemoryCounter int calcMemoryLocal() const override final; + std::string getCounterName() const override + { return mName; } + /** * Determines whether the given animation frame is a terminator. */ @@ -93,6 +98,7 @@ class Animation final : public MemoryCounter protected: Frames mFrames; + std::string mName; int mDuration; }; -- cgit v1.2.3-60-g2f50