summaryrefslogtreecommitdiff
path: root/assetFactory/assetFactory.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-03-22 11:50:31 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2025-03-22 11:50:31 +0000
commit9fd25e8b10b1291525a18c8b3e34256ca6151dd6 (patch)
treec483b55010f310ed60cb7381130feedd2b3980a9 /assetFactory/assetFactory.h
parentSupport resizing the main window (diff)
downloadilt-9fd25e8b10b1291525a18c8b3e34256ca6151dd6.tar.bz2
ilt-9fd25e8b10b1291525a18c8b3e34256ca6151dd6.tar.xz
ilt-9fd25e8b10b1291525a18c8b3e34256ca6151dd6.zip
Add ManyPtr which tracks specified subclasses
This removes the need to repeated dynamic_cast the pointer. Provides interface which enforces the fastest option for the required types.
Diffstat (limited to 'assetFactory/assetFactory.h')
-rw-r--r--assetFactory/assetFactory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/assetFactory/assetFactory.h b/assetFactory/assetFactory.h
index 787f0a4..864e882 100644
--- a/assetFactory/assetFactory.h
+++ b/assetFactory/assetFactory.h
@@ -12,7 +12,7 @@ class Texture;
class AssetFactory : public Persistence::Persistable {
public:
using Shapes = std::map<std::string, Shape::Ptr, std::less<>>;
- using Assets = std::map<std::string, Asset::Ptr, std::less<>>;
+ using Assets = std::map<std::string, Asset::ManyPtr, std::less<>>;
using AssImps = std::map<std::string, AssImp::Ptr, std::less<>>;
using TextureFragments = std::map<std::string, TextureFragment::Ptr, std::less<>>;
using Colour = RGB;