diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/resources/map/walklayer.cpp | 7 | ||||
-rw-r--r-- | src/resources/map/walklayer.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/resources/map/walklayer.cpp b/src/resources/map/walklayer.cpp index e49b92bda..9f93f94dd 100644 --- a/src/resources/map/walklayer.cpp +++ b/src/resources/map/walklayer.cpp @@ -42,3 +42,10 @@ int WalkLayer::getDataAt(const int x, const int y) const return 0; return mTiles[x + y * mWidth]; } + +int WalkLayer::calcMemoryLocal() +{ + return Resource::calcMemoryLocal() + + sizeof(WalkLayer) + + sizeof(int) * mWidth * mHeight; +} diff --git a/src/resources/map/walklayer.h b/src/resources/map/walklayer.h index 8b6333472..d867ad0fd 100644 --- a/src/resources/map/walklayer.h +++ b/src/resources/map/walklayer.h @@ -39,6 +39,8 @@ class WalkLayer final : public Resource int getDataAt(const int x, const int y) const; + int calcMemoryLocal() override final; + private: int mWidth; int mHeight; |