Table of Contents

Class BuildDependencyManager

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

Build dependency manager Basically is a container of BuildAssetNode

public class BuildDependencyManager
Inheritance
BuildDependencyManager

Fields

AssetCompilerRegistry

The AssetCompilerRegistry, here mostly for ease of access

public static readonly AssetCompilerRegistry AssetCompilerRegistry

Field Value

AssetCompilerRegistry

Methods

FindNode(AssetItem, Type)

Finds a node, notice that this will not perform an analysis on the node, which must be explicitly called on the node

public BuildAssetNode FindNode(AssetItem item, Type compilationContext)

Parameters

item AssetItem

The asset item to find

compilationContext Type

The context in which the asset is compiled.

Returns

BuildAssetNode

The build node associated with item or null if it was not found

FindNodes(AssetItem)

Finds all the nodes associated with the asset

public IEnumerable<BuildAssetNode> FindNodes(AssetItem item)

Parameters

item AssetItem

The asset item to find

Returns

IEnumerable<BuildAssetNode>

The build nodes associated with item or null if it was not found

FindOrCreateNode(AssetItem, Type)

Finds or creates a node, notice that this will not perform an analysis on the node, which must be explicitly called on the node

public BuildAssetNode FindOrCreateNode(AssetItem item, Type compilationContext)

Parameters

item AssetItem

The asset item to find or create

compilationContext Type

The context in which the asset is compiled.

Returns

BuildAssetNode

The build node associated with item

RemoveNode(BuildAssetNode)

Removes the node from the build graph

public void RemoveNode(BuildAssetNode node)

Parameters

node BuildAssetNode

The node to remove

RemoveNode(AssetItem)

Removes the nodes associated with item from the build graph

public void RemoveNode(AssetItem item)

Parameters

item AssetItem

The item to use to find nodes to remove