Skip to content

Engine → Assets → asset_cooker.h

asset_cooker

Syntax

class CONJURE_API asset_cooker

Constructors

AccessSignatureDescription
publicasset_cooker( asset_database &database, const asset_cache &cache, core::vfs::file_system &fileSystem, core::jobs::job_system &jobs);

Important

Copy constructor and assignment has been deleted.

Destructors

AccessSignatureDescription
public~asset_cooker();

Variables

AccessNameTypeDefaultDescription
privatemCacheconst asset_cache *nullptr
privatemDatabaseasset_database *nullptr
privatemFileSystemcore::vfs::file_system *nullptr
privatemJobscore::jobs::job_system *nullptr
privatemLastReportcook_report{}

Functions

Public

cook

[[nodiscard]] core::result<cook_report> cook(
    const cook_settings &settings);

Scans, computes the closure (roots + alwaysInclude + every engine:// asset, or all records but the unnamed NO_IMPORTER and MISSING_SOURCE ones, which become report warnings unless a member depends on them), drops EXCLUDE_FROM_PACK types, imports stale members, verifies every blob and writes the pack. IMPORT_FAILED with every failure listed in the report when any member cannot be cooked; nothing is written then.

last_report

[[nodiscard]] const cook_report &last_report() const noexcept;

The report of the last cook(), successful or not.