Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    AssetBaseAnalysis Class

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

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

    System.Object → PackageSessionAnalysisBase → AssetBaseAnalysis
    Derived from AssetBaseAnalysis:

    public sealed class AssetBaseAnalysis : PackageSessionAnalysisBase
    Name Description
    Constructors
    AssetBaseAnalysis(PackageSession)

    Initializes a new instance of the AssetBaseAnalysis class.

    Methods
    Run(ILogger)

    Performs a wide package validation analysis.

    ValidateAssetBase(AssetItem)

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

    ValidateAssetBase(AssetItem, ILogger)

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

    ValidateAssetBase(ILogger)

    Validates the inheritance of all assets in the package.

    | Improve this Doc View Source

    Constructors


    AssetBaseAnalysis(PackageSession)

    Initializes a new instance of the AssetBaseAnalysis class.

    public AssetBaseAnalysis(PackageSession packageSession)
    Parameters
    Type Name Description
    PackageSession packageSession

    The package session.

    | Improve this Doc View Source

    Methods


    Run(ILogger)

    Performs a wide package validation analysis.

    public override void Run(ILogger log)
    Parameters
    Type Name Description
    ILogger log

    The log to output the result of the validation.

    Overrides
    PackageSessionAnalysisBase.Run(ILogger)

    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
    Type Name Description
    AssetItem assetItem

    The asset item.

    Returns
    Type Description
    LoggerValueResult<System.Collections.Generic.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
    Type Name Description
    AssetItem assetItem

    The asset item.

    ILogger log

    The log to output the result of the analysis.

    Returns
    Type Description
    System.Collections.Generic.List<Asset>

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

    Exceptions
    Type Condition
    System.ArgumentNullException

    asset or log


    ValidateAssetBase(ILogger)

    Validates the inheritance of all assets in the package.

    public HashSet<Asset> ValidateAssetBase(ILogger log)
    Parameters
    Type Name Description
    ILogger log

    The log to output the result of the analysis.

    Returns
    Type Description
    System.Collections.Generic.HashSet<Asset>

    A collection that contains all valid assets.


    Inherited Members

    PackageSessionAnalysisBase.Session
    PackageSessionAnalysisBase.Run()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation