19 std::string displayName;
20 std::string subassetIdentifier;
22 std::filesystem::path path;
29 void Initialize(
const std::filesystem::path& projectPath);
30 virtual void Cleanup();
31 virtual void UpdateEntry(
32 const std::filesystem::path& path,
33 const std::string_view subassetIdentifier,
34 const std::string_view displayName,
35 const std::string_view address,
39 virtual void WriteFile();
40 virtual void ReadFile();
41 virtual Uuid Import(
const std::filesystem::path& path);
43 [[nodiscard]]
virtual const std::filesystem::path& GetCompiledAssetsPath()
const;
45 virtual bool RemoveEntry(
Uuid uuid);
46 virtual bool HasAsset(
Uuid uuid)
const;
47 virtual bool TryGetPathWithMountPoint(
const std::filesystem::path& path, std::filesystem::path& outMountedPath)
const;
48 virtual bool TryGetAbsolutePathFromMountedPath(
const std::filesystem::path& mountedPath, std::filesystem::path& outAbsolutePath)
const;
49 virtual bool TryGetAssetDataFromAbsolutePath(
const std::filesystem::path& path,
AssetRegistry::Entry& outEntry)
const;
50 virtual bool TryGetAssetData(
const std::filesystem::path & path,
AssetRegistry::Entry & outEntry)
const;
54 virtual void FindAllFilesOfType(AssetType assetType, std::vector<Entry>& outEntries)
const;
56 virtual std::unordered_set<Grindstone::Uuid> GetUsedUuids()
const;
58 std::map<Uuid, Entry> assets;
59 std::filesystem::path assetsPath;
60 std::filesystem::path compiledAssetsPath;
61 std::filesystem::path assetRegistryPath;
Definition AssetRegistry.hpp:17