summaryrefslogtreecommitdiff
path: root/assetFactory/asset.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-04-18 19:43:44 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2025-04-18 19:43:44 +0100
commit6036877ac4e92da3185f21d5928bf3ed28d685b2 (patch)
tree5e5a5f6ad09e196bbecfbfec2a9a3c8f02262ca3 /assetFactory/asset.h
parentMerge branch 'openmesh-11' (diff)
parentRemember selected asset id and reload/reselect resource file on change (diff)
downloadilt-6036877ac4e92da3185f21d5928bf3ed28d685b2.tar.bz2
ilt-6036877ac4e92da3185f21d5928bf3ed28d685b2.tar.xz
ilt-6036877ac4e92da3185f21d5928bf3ed28d685b2.zip
Merge branch 'resviewer'HEADmain
Diffstat (limited to 'assetFactory/asset.h')
-rw-r--r--assetFactory/asset.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/assetFactory/asset.h b/assetFactory/asset.h
index b5de056..061a7c8 100644
--- a/assetFactory/asset.h
+++ b/assetFactory/asset.h
@@ -2,17 +2,22 @@
#include "factoryMesh.h"
#include "persistence.h"
+#include <any>
#include <manyPtr.h>
#include <stdTypeDefs.h>
class TextureAtlas;
class Renderable;
+class Location;
class Asset : public Persistence::Persistable, public StdTypeDefs<Asset> {
public:
using ManyPtr = ManySharedPtr<Asset, const Renderable>;
using TexturePtr = std::shared_ptr<TextureAtlas>;
+ /// Used only for the asset viewer
+ [[nodiscard]] virtual std::any createAt(const Location &) const;
+
std::string id;
std::string name;