Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
AssetDependencyManagerExtensions.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 using System.Collections.Generic;
5 using SiliconStudio.Core.Serialization;
6 
7 namespace SiliconStudio.Assets.Analysis
8 {
9  /// <summary>
10  /// Extensions for the <see cref="AssetDependencyManager"/>
11  /// </summary>
13  {
14  public static AssetDependencySet Find(this AssetDependencyManager manager, AssetItem item)
15  {
16  if (item == null) throw new ArgumentNullException("item");
17  return manager.FindDependencySet(item.Id);
18  }
19 
21  {
22  if (item == null) throw new ArgumentNullException("item");
23  return manager.FindMissingReferences(item.Id);
24  }
25  }
26 }
static IEnumerable< IContentReference > FindMissingReferences(this AssetDependencyManager manager, AssetItem item)
An asset item part of a Package accessible through SiliconStudio.Assets.Package.Assets.
Definition: AssetItem.cs:17
Describes dependencies (in/out/miss) for a specific asset.
A class responsible for providing asset dependencies for a PackageSession and file tracking dependenc...
static AssetDependencySet Find(this AssetDependencyManager manager, AssetItem item)