diff options
Diffstat (limited to 'source/base/StarAssets.hpp')
-rw-r--r-- | source/base/StarAssets.hpp | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/source/base/StarAssets.hpp b/source/base/StarAssets.hpp index 6ffcb05..a8e4480 100644 --- a/source/base/StarAssets.hpp +++ b/source/base/StarAssets.hpp @@ -71,20 +71,20 @@ public: StringList digestIgnore; }; - enum class AssetType { - Json, - Image, - Audio, - Font, - Bytes - }; - enum class QueuePriority { None, Working, PostProcess, Load }; + + enum class AssetType { + Json, + Image, + Audio, + Font, + Bytes + }; struct AssetId { AssetType type; @@ -107,6 +107,7 @@ public: double time = 0.0; bool needsPostProcessing = false; + bool forcePersist = false; }; struct JsonData : AssetData { @@ -255,6 +256,14 @@ public: void cleanup(); private: + EnumMap<AssetType> const AssetTypeNames{ + {AssetType::Json, "json"}, + {AssetType::Image, "image"}, + {AssetType::Audio, "audio"}, + {AssetType::Font, "font"}, + {AssetType::Bytes, "bytes"} + }; + static FramesSpecification parseFramesSpecification(Json const& frameConfig, String path); void queueAssets(List<AssetId> const& assetIds) const; |