Gets the asset references. The output collection of the asset ids referenced by this object.
| 386 | /// </remarks> |
| 387 | /// <param name="assets">The output collection of the asset ids referenced by this object.</param> |
| 388 | virtual void GetReferences(Array<Guid>& assets) const |
| 389 | { |
| 390 | for (int32 i = 0; i < Parameters.Count(); i++) |
| 391 | { |
| 392 | const auto& p = Parameters[i]; |
| 393 | const Guid id = (Guid)p.Value; |
| 394 | if (id.IsValid()) |
| 395 | assets.Add(id); |
| 396 | } |
| 397 | |
| 398 | for (int32 i = 0; i < Nodes.Count(); i++) |
| 399 | { |
| 400 | const auto& n = Nodes[i]; |
| 401 | for (int32 j = 0; j < n.Values.Count(); j++) |
| 402 | { |
| 403 | const Guid id = (Guid)n.Values[j]; |
| 404 | if (id.IsValid()) |
| 405 | assets.Add(id); |
| 406 | } |
| 407 | } |
| 408 | } |
| 409 | |
| 410 | #endif |
| 411 |