19 std::string displayName;
20 std::string subassetIdentifier;
22 std::filesystem::path path;
24 std::filesystem::file_time_type sourceFileWrite;
25 std::filesystem::file_time_type metaFileWrite;
26 uint32_t assetImporterVersion;
27 uint32_t metaFileVersion;
28 uint64_t assetFileSize;
29 uint64_t metaFileSize;
35 void Initialize(
const std::filesystem::path& projectPath);
36 virtual void Cleanup();
37 virtual void UpdateEntry(
38 const std::filesystem::path& path,
39 const std::string_view subassetIdentifier,
40 const std::string_view displayName,
41 const std::string_view address,
44 std::filesystem::file_time_type sourceFileWrite,
45 std::filesystem::file_time_type metaFileWrite,
46 uint32_t assetImporterVersion,
47 uint32_t metaFileVersion,
48 uint64_t assetFileSize,
51 virtual void WriteFile();
52 virtual void ReadFile();
53 virtual Uuid Import(
const std::filesystem::path& path);
55 [[nodiscard]]
virtual const std::filesystem::path& GetCompiledAssetsPath()
const;
57 virtual bool RemoveEntry(
Uuid uuid);
58 virtual bool HasAsset(
Uuid uuid)
const;
59 virtual bool TryGetPathWithMountPoint(
const std::filesystem::path& path, std::filesystem::path& outMountedPath)
const;
60 virtual bool TryGetAbsolutePathFromMountedPath(
const std::filesystem::path& mountedPath, std::filesystem::path& outAbsolutePath)
const;
61 virtual bool TryGetAssetDataFromAbsolutePath(
const std::filesystem::path& path,
AssetRegistry::Entry& outEntry)
const;
62 virtual bool TryGetAssetData(
const std::filesystem::path & path,
AssetRegistry::Entry & outEntry)
const;
66 virtual void FindAllFilesOfType(AssetType assetType, std::vector<Entry>& outEntries)
const;
68 virtual std::unordered_set<Grindstone::Uuid> GetUsedUuids()
const;
70 std::map<Uuid, Entry> assets;
71 std::filesystem::path assetsPath;
72 std::filesystem::path compiledAssetsPath;
73 std::filesystem::path assetRegistryPath;
Definition AssetRegistry.hpp:17