| 162 | } |
| 163 | |
| 164 | void 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 | |
| 178 | bool BinaryAsset::HasDependenciesModified() const |
| 179 | { |