diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-29 21:03:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-29 21:03:25 +0300 |
commit | 10b7c4a1313395291a77c50189b31e9daf38a2b0 (patch) | |
tree | 8f0eea8bc2567b0431bb03d45126786cddddcf60 /src/resources/map/objectslayer.h | |
parent | 5f6e0176cc64824a28391070ddb249a6efff0b7c (diff) | |
download | manaverse-10b7c4a1313395291a77c50189b31e9daf38a2b0.tar.gz manaverse-10b7c4a1313395291a77c50189b31e9daf38a2b0.tar.bz2 manaverse-10b7c4a1313395291a77c50189b31e9daf38a2b0.tar.xz manaverse-10b7c4a1313395291a77c50189b31e9daf38a2b0.zip |
Add memory counting into ObjectsLayer.
Diffstat (limited to 'src/resources/map/objectslayer.h')
-rw-r--r-- | src/resources/map/objectslayer.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/resources/map/objectslayer.h b/src/resources/map/objectslayer.h index 629b46426..09573a627 100644 --- a/src/resources/map/objectslayer.h +++ b/src/resources/map/objectslayer.h @@ -21,13 +21,15 @@ #ifndef RESOURCES_MAP_OBJECTSLAYER_H #define RESOURCES_MAP_OBJECTSLAYER_H +#include "resources/memorycounter.h" + #include <string> #include "localconsts.h" class MapObjectList; -class ObjectsLayer final +class ObjectsLayer final : public MemoryCounter { public: ObjectsLayer(const unsigned width, const unsigned height); @@ -42,6 +44,12 @@ class ObjectsLayer final MapObjectList *getAt(const unsigned x, const unsigned y) const A_WARN_UNUSED; + + int calcMemoryLocal() const override final; + + std::string getCounterName() const override final + { return "objects leyer"; } + private: MapObjectList **mTiles; unsigned mWidth; |