From 706501b18a4ec00c78a9e8f1abd3f8a67cc63224 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Apr 2016 01:28:01 +0300 Subject: Add memory count function into WalkLayer. --- src/resources/map/walklayer.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/resources/map/walklayer.cpp') 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; +} -- cgit v1.2.3-70-g09d2