mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-08 04:20:14 -05:00
Add meta information to Asset class
This commit is contained in:
@@ -51,6 +51,15 @@ public:
|
||||
using StateChangeCallback = std::function<void(State)>;
|
||||
using CallbackHandle = size_t;
|
||||
|
||||
struct MetaInformation {
|
||||
std::string name;
|
||||
std::string version;
|
||||
std::string description;
|
||||
std::string author;
|
||||
std::string url;
|
||||
std::string license;
|
||||
};
|
||||
|
||||
/**
|
||||
* Root asset constructor
|
||||
*/
|
||||
@@ -136,6 +145,8 @@ public:
|
||||
|
||||
std::string resolveLocalResource(std::string resourceName) const;
|
||||
|
||||
void setMetaInformation(MetaInformation metaInformation);
|
||||
|
||||
private:
|
||||
void setState(State state);
|
||||
|
||||
@@ -157,6 +168,8 @@ private:
|
||||
// Absolute path to asset file
|
||||
std::string _assetPath;
|
||||
|
||||
MetaInformation _metaInformation;
|
||||
|
||||
// Required assets
|
||||
std::vector<std::shared_ptr<Asset>> _requiredAssets;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user