36 auto found = std::find_if(
m_assets.begin(),
m_assets.end(), [&id] (
const auto fs) {
37 return fs.second->id == id;
39 return found ==
m_assets.end() ? nullptr : found->second;
43 auto id = existing->
id;
50 free(existing->
faces);
face_info * faces
images in this faceset
virtual void added(face_sets *face) override
An asset was either referenced (but undefined) or defined.
std::unordered_map< std::string, face_sets *> m_assets
Known assets.
size_t allocated
Allocated size of faces.
face_sets * findById(int id)
Attempt to find a faceset from its identifier.
char * prefix
Faceset short name, used in pictures names (base, clsc).
char * extension
Supplementary description.
char * size
Human-readable set size.
virtual void replace(face_sets *existing, face_sets *update) override
Replace an asset by an updated version.
char * comment
Human-readable comment for this set.
face_sets * asset_create(const std::string &prefix)
void asset_destroy(face_sets *item)
char * fullname
Full faceset name.
Information about one face set.