BuildDependencyManager Class
Namespace: Stride.Core.Assets.AnalysisAssembly: Stride.Core.Assets.dll
Build dependency manager Basically is a container of BuildAssetNode
public class BuildDependencyManager
Name | Description | |
---|---|---|
Fields | ||
AssetCompilerRegistry | The AssetCompilerRegistry, here mostly for ease of access |
|
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 |
|
FindNodes(AssetItem) | Finds all the nodes associated with the asset |
|
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 |
|
RemoveNode(BuildAssetNode) | Removes the node from the build graph |
|
RemoveNode(AssetItem) | Removes the nodes associated with item from the build graph |
Fields
AssetCompilerRegistry
The AssetCompilerRegistry, here mostly for ease of access
public static readonly AssetCompilerRegistry AssetCompilerRegistry
Field Value
Type | Description |
---|---|
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
Type | Name | Description |
---|---|---|
AssetItem | item | The asset item to find |
System.Type | compilationContext | The context in which the asset is compiled. |
Returns
Type | Description |
---|---|
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
Type | Name | Description |
---|---|---|
AssetItem | item | The asset item to find |
Returns
Type | Description |
---|---|
System.Collections.Generic.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
Type | Name | Description |
---|---|---|
AssetItem | item | The asset item to find or create |
System.Type | compilationContext | The context in which the asset is compiled. |
Returns
Type | Description |
---|---|
BuildAssetNode | The build node associated with item |
RemoveNode(BuildAssetNode)
Removes the node from the build graph
public void RemoveNode(BuildAssetNode node)
Parameters
Type | Name | Description |
---|---|---|
BuildAssetNode | node | The node to remove |
RemoveNode(AssetItem)
Removes the nodes associated with item from the build graph
public void RemoveNode(AssetItem item)
Parameters
Type | Name | Description |
---|---|---|
AssetItem | item | The item to use to find nodes to remove |