vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::AssetRecord Struct Reference

One row of the manifest: an asset's identity, and what it was cooked from. More...

#include <asset_library.h>

Public Attributes

uint64_t recipeHash = 0
 What the cooked file was last baked from: the recipe, its source art's bytes, and the recorded key of any asset it derives from.
std::vector< std::string > sources
 The source-art files the cook read and folded into recipeHash, as project references (AssetCooker::sourceFiles).

Detailed Description

One row of the manifest: an asset's identity, and what it was cooked from.

The identity is (type, name) alone; where its files sit is derived from it, so a record names no paths.

Member Data Documentation

◆ recipeHash

uint64_t Vkm::Engine::AssetRecord::recipeHash = 0

What the cooked file was last baked from: the recipe, its source art's bytes, and the recorded key of any asset it derives from.

Not the cooker or the layout: AssetCook::cacheKey adds those when it names the file.

◆ sources

std::vector<std::string> Vkm::Engine::AssetRecord::sources

The source-art files the cook read and folded into recipeHash, as project references (AssetCooker::sourceFiles).

Recorded so the cook that hashes them is their one owner (see import_sources in tools/vkmcli/package.py).


The documentation for this struct was generated from the following file: