---------------------------------- ResourceManager::SetAssetReferences Runs the setter function on each asset reference in the DB
| 45 | // Runs the setter function on each asset reference in the DB |
| 46 | // |
| 47 | void ResourceManager::SetAssetReferences(AssetDatabase&db, T_ReferenceAssetGetter const& fnc) const |
| 48 | { |
| 49 | for (AssetDatabase::AssetCache& cache : db.caches) |
| 50 | { |
| 51 | // every asset per cache |
| 52 | for (I_Asset* asset : cache.cache) |
| 53 | { |
| 54 | for (I_Asset::Reference& reference : asset->m_References) |
| 55 | { |
| 56 | reference.m_Asset = fnc(reference.m_Id); |
| 57 | } |
| 58 | } |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | |
| 63 | } // namespace core |
nothing calls this directly
no outgoing calls
no test coverage detected