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

Extension methods for PackageSession. More...

Static Public Member Functions

static AssetItem FindAsset (this PackageSession session, UFile location)
 Finds an asset from all the packages by its location. More...
 
static AssetItem FindAsset (this PackageSession session, Guid assetId)
 Finds an asset from all the packages by its id. More...
 
static PackageSession CreateCompilePackageFromAsset (this PackageSession session, AssetItem originalAssetItem)
 Create a PackageSession that can be used to compile an AssetItem by analyzing and resolving its dependencies. More...
 

Detailed Description

Extension methods for PackageSession.

Definition at line 15 of file PackageSession.Extensions.cs.

Member Function Documentation

static PackageSession SiliconStudio.Assets.PackageSessionExtensions.CreateCompilePackageFromAsset ( this PackageSession  session,
AssetItem  originalAssetItem 
)
static

Create a PackageSession that can be used to compile an AssetItem by analyzing and resolving its dependencies.

Returns
The package packageSession that can be used to compile the asset item.

Definition at line 44 of file PackageSession.Extensions.cs.

static AssetItem SiliconStudio.Assets.PackageSessionExtensions.FindAsset ( this PackageSession  session,
UFile  location 
)
static

Finds an asset from all the packages by its location.

Parameters
sessionThe session.
locationThe location of the asset.
Returns
An AssetItem or null if not found.

Definition at line 23 of file PackageSession.Extensions.cs.

References SiliconStudio.Assets.PackageSession.Packages.

static AssetItem SiliconStudio.Assets.PackageSessionExtensions.FindAsset ( this PackageSession  session,
Guid  assetId 
)
static

Finds an asset from all the packages by its id.

Parameters
sessionThe session.
assetIdThe assetId of the asset.
Returns
An AssetItem or null if not found.

Definition at line 35 of file PackageSession.Extensions.cs.


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