MCPcopy Create free account
hub / github.com/Illation/ETEngine / ~AssetDatabase

Method ~AssetDatabase

Engine/source/EtCore/Content/AssetDatabase.cpp:91–107  ·  view source on GitHub ↗

--------------------------------- AssetDatabase::d-tor Delete all asset pointers

Source from the content-addressed store, hash-verified

89// Delete all asset pointers
90//
91AssetDatabase::~AssetDatabase()
92{
93 if (!m_OwnsAssets)
94 {
95 return;
96 }
97
98 for (AssetCache& cache : caches)
99 {
100 for (I_Asset* asset : cache.cache)
101 {
102 delete asset;
103 asset = nullptr;
104 }
105 }
106 caches.clear();
107}
108
109//---------------------------------
110// AssetDatabase::GetAssetsInPackage

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected