Table of Contents

Class AssetBaseAnalysis

Namespace
Stride.Core.Assets.Analysis
Assembly
Stride.Core.Assets.dll

An analysis to validate that all assets in a package have a valid Asset base. In order to be valid, this analysis must be run after a PackageAnalysis

public sealed class AssetBaseAnalysis : PackageSessionAnalysisBase
Inheritance
AssetBaseAnalysis
Inherited Members

Constructors

AssetBaseAnalysis(PackageSession)

Initializes a new instance of the AssetBaseAnalysis class.

public AssetBaseAnalysis(PackageSession packageSession)

Parameters

packageSession PackageSession

The package session.

Methods

Run(ILogger)

Performs a wide package validation analysis.

public override void Run(ILogger log)

Parameters

log ILogger

The log to output the result of the validation.

ValidateAssetBase(AssetItem)

Validates the inheritance of an asset by checking base accessibility up to the root base.

public LoggerValueResult<List<Asset>> ValidateAssetBase(AssetItem assetItem)

Parameters

assetItem AssetItem

The asset item.

Returns

LoggerValueResult<List<Asset>>

A logger result with a list of all the base in bottom-up orde.

ValidateAssetBase(AssetItem, ILogger)

Validates the inheritance of an asset by checking base accessibility up to the root base.

public List<Asset> ValidateAssetBase(AssetItem assetItem, ILogger log)

Parameters

assetItem AssetItem

The asset item.

log ILogger

The log to output the result of the analysis.

Returns

List<Asset>

A list of all the base in bottom-up order.

Exceptions

ArgumentNullException

asset or log

ValidateAssetBase(ILogger)

Validates the inheritance of all assets in the package.

public HashSet<Asset> ValidateAssetBase(ILogger log)

Parameters

log ILogger

The log to output the result of the analysis.

Returns

HashSet<Asset>

A collection that contains all valid assets.