diff options
Diffstat (limited to 'src/resources/map/map.cpp')
-rw-r--r-- | src/resources/map/map.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp index 1e97597bf..c9636183e 100644 --- a/src/resources/map/map.cpp +++ b/src/resources/map/map.cpp @@ -42,6 +42,8 @@ #include "resources/ambientlayer.h" +#include "resources/atlas/atlasresource.h" + #include "resources/image/subimage.h" #include "resources/loaders/imageloader.h" @@ -1791,3 +1793,10 @@ int Map::calcMemoryChilds(const int level) const mHeights->calcMemory(level + 1); return sz; } + +int Map::getAtlasCount() const restrict2 +{ + if (mAtlas == nullptr) + return 0; + return CAST_S32(mAtlas->atlases.size()); +} |