MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / AddDependency

Method AddDependency

Source/Engine/Content/BinaryAsset.cpp:164–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void BinaryAsset::AddDependency(BinaryAsset* asset)
165{
166 ASSERT_LOW_LAYER(asset);
167 const Guid id = asset->GetID();
168 for (auto& e : Dependencies)
169 {
170 if (e.First == id)
171 return;
172 }
173 ASSERT(!asset->_dependantAssets.Contains(asset));
174 Dependencies.Add(ToPair(id, FileSystem::GetFileLastEditTime(asset->GetPath())));
175 asset->_dependantAssets.Add(this);
176}
177
178bool BinaryAsset::HasDependenciesModified() const
179{

Callers

nothing calls this directly

Calls 5

ToPairFunction · 0.85
GetIDMethod · 0.80
ContainsMethod · 0.45
AddMethod · 0.45
GetPathMethod · 0.45

Tested by

no test coverage detected