25 AssetEntryStatus status;
27 std::string displayName;
28 std::string subassetIdentifier;
30 std::filesystem::path path;
32 std::filesystem::file_time_type sourceFileWrite;
33 std::filesystem::file_time_type metaFileWrite;
34 uint32_t assetImporterVersion;
35 uint32_t metaFileVersion;
36 uint64_t assetFileSize;
37 uint64_t metaFileSize;
43 void Initialize(
const std::filesystem::path& projectPath);
44 virtual void Cleanup();
45 virtual void UpdateEntry(
46 AssetEntryStatus status,
47 const std::filesystem::path& path,
48 const std::string_view subassetIdentifier,
49 const std::string_view displayName,
50 const std::string_view address,
53 std::filesystem::file_time_type sourceFileWrite,
54 std::filesystem::file_time_type metaFileWrite,
55 uint32_t assetImporterVersion,
56 uint32_t metaFileVersion,
57 uint64_t assetFileSize,
60 virtual void WriteFile();
61 virtual void ReadFile();
62 virtual Uuid Import(
const std::filesystem::path& path);
64 [[nodiscard]]
virtual const std::filesystem::path& GetCompiledAssetsPath()
const;
66 virtual bool RemoveEntry(
Uuid uuid);
67 virtual bool HasAsset(
Uuid uuid)
const;
68 virtual bool TryGetPathWithMountPoint(
const std::filesystem::path& path, std::filesystem::path& outMountedPath)
const;
69 virtual bool TryGetAbsolutePathFromMountedPath(
const std::filesystem::path& mountedPath, std::filesystem::path& outAbsolutePath)
const;
70 virtual bool TryGetAssetDataFromAbsolutePath(
const std::filesystem::path& path,
AssetRegistry::Entry& outEntry)
const;
71 virtual bool TryGetAssetData(
const std::filesystem::path & path,
AssetRegistry::Entry & outEntry)
const;
75 virtual void FindAllFilesOfType(AssetType assetType, std::vector<Entry>& outEntries)
const;
77 virtual std::unordered_set<Grindstone::Uuid> GetUsedUuids()
const;
79 std::map<Uuid, Entry> assets;
80 std::filesystem::path assetsPath;
81 std::filesystem::path compiledAssetsPath;
82 std::filesystem::path assetRegistryPath;