diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-03-12 00:54:24 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-03-12 19:43:14 +0000 |
commit | 88c9d66352c2f4856682efd48482b5b72aca18bf (patch) | |
tree | 7da5207ceb7cccf2866945fe0c6ba75533663704 /assetFactory/assetFactory.cpp | |
parent | Initial version of texture packer (diff) | |
download | ilt-88c9d66352c2f4856682efd48482b5b72aca18bf.tar.bz2 ilt-88c9d66352c2f4856682efd48482b5b72aca18bf.tar.xz ilt-88c9d66352c2f4856682efd48482b5b72aca18bf.zip |
Support loading references to texture fragments
Diffstat (limited to 'assetFactory/assetFactory.cpp')
-rw-r--r-- | assetFactory/assetFactory.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/assetFactory/assetFactory.cpp b/assetFactory/assetFactory.cpp index f5fc2b3..de13579 100644 --- a/assetFactory/assetFactory.cpp +++ b/assetFactory/assetFactory.cpp @@ -75,11 +75,14 @@ AssetFactory::parseColour(std::string_view in) const } throw std::runtime_error("No such asset factory colour"); } + bool AssetFactory::persist(Persistence::PersistenceStore & store) { using MapObjects = Persistence::MapByMember<Shapes, std::shared_ptr<Object>>; using MapAssets = Persistence::MapByMember<Assets>; + using MapTextureFragments = Persistence::MapByMember<TextureFragments>; return STORE_TYPE && STORE_NAME_HELPER("object", shapes, MapObjects) + && STORE_NAME_HELPER("textureFragment", textureFragments, MapTextureFragments) && STORE_NAME_HELPER("asset", assets, MapAssets); } |