Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Assets.PackageExtensions Class Reference

Extensions for Package More...

Static Public Member Functions

static PackageCollection FindDependencies (this Package rootPackage, bool includeRootPackage=false, bool isRecursive=true)
 Finds the package dependencies for the specified Package. See remarks. More...
 
static bool ContainsAsset (this IEnumerable< Package > packages, Guid assetGuid)
 Determines whether the specified packages contains an asset by its guid. More...
 
static bool ContainsAsset (this IEnumerable< Package > packages, UFile location)
 Determines whether the specified packages contains an asset by its location. More...
 

Detailed Description

Extensions for Package

Definition at line 15 of file PackageExtensions.cs.

Member Function Documentation

static bool SiliconStudio.Assets.PackageExtensions.ContainsAsset ( this IEnumerable< Package packages,
Guid  assetGuid 
)
static

Determines whether the specified packages contains an asset by its guid.

Parameters
packagesThe packages.
assetGuidThe asset unique identifier.
Returns
true if the specified packages contains asset; otherwise, false.

Definition at line 47 of file PackageExtensions.cs.

static bool SiliconStudio.Assets.PackageExtensions.ContainsAsset ( this IEnumerable< Package packages,
UFile  location 
)
static

Determines whether the specified packages contains an asset by its location.

Parameters
packagesThe packages.
locationThe location.
Returns
true if the specified packages contains asset; otherwise, false.

Definition at line 58 of file PackageExtensions.cs.

References SiliconStudio.Assets.PackageMeta.Dependencies, SiliconStudio.Assets.Package.LocalDependencies, and SiliconStudio.Assets.Package.Meta.

static PackageCollection SiliconStudio.Assets.PackageExtensions.FindDependencies ( this Package  rootPackage,
bool  includeRootPackage = false,
bool  isRecursive = true 
)
static

Finds the package dependencies for the specified Package. See remarks.

Parameters
rootPackageThe root package.
includeRootPackageif set to true [include root package].
isRecursiveif set to true [is recursive].
Returns
List<Package>.
Exceptions
System.ArgumentNullExceptionrootPackage
System.ArgumentExceptionRoot package must be part of a session;rootPackage

Definition at line 26 of file PackageExtensions.cs.


The documentation for this class was generated from the following file: