BuildDependencyInfo Struct
Namespace: Stride.Core.Assets.AnalysisAssembly: Stride.Core.Assets.dll
A structure representing information related to a build dependency between one source assets and a target type of asset.
public struct BuildDependencyInfo : IEquatable<BuildDependencyInfo>
| Name | Description | |
|---|---|---|
| Constructors | ||
| BuildDependencyInfo(Type, Type, BuildDependencyType) | Initializes a new instance of the BuildDependencyInfo structure. |
|
| Fields | ||
| AssetType | The type of asset targeted by this dependency. |
|
| CompilationContext | The compilation context in which to compile the target asset. |
|
| DependencyType | The type of dependency, indicating whether the target asset must actually be compiled, and whether it should be compiled before the referecing asset or can be at the same time. |
|
| Methods | ||
| Equals(BuildDependencyInfo) | ||
| Equals(Object) | ||
| GetHashCode() | ||
| Operators | ||
| Equality(BuildDependencyInfo, BuildDependencyInfo) | ||
| Inequality(BuildDependencyInfo, BuildDependencyInfo) | ||
Constructors
BuildDependencyInfo(Type, Type, BuildDependencyType)
Initializes a new instance of the BuildDependencyInfo structure.
public BuildDependencyInfo(Type assetType, Type compilationContext, BuildDependencyType dependencyType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | assetType | The type of asset targeted by this dependency info. |
| System.Type | compilationContext | The compilation context in which to compile the target asset. |
| BuildDependencyType | dependencyType | The type of dependency. |
Fields
AssetType
The type of asset targeted by this dependency.
public readonly Type AssetType
Field Value
| Type | Description |
|---|---|
| System.Type |
CompilationContext
The compilation context in which to compile the target asset.
public readonly Type CompilationContext
Field Value
| Type | Description |
|---|---|
| System.Type |
Remarks
This context is not relevant if the asset is not compiled, like when DependencyType is CompileAsset
DependencyType
The type of dependency, indicating whether the target asset must actually be compiled, and whether it should be compiled before the referecing asset or can be at the same time.
public readonly BuildDependencyType DependencyType
Field Value
| Type | Description |
|---|---|
| BuildDependencyType |
Methods
Equals(BuildDependencyInfo)
public bool Equals(BuildDependencyInfo other)
Parameters
| Type | Name | Description |
|---|---|---|
| BuildDependencyInfo | other |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Equals(Object)
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
GetHashCode()
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 |
Overrides
Operators
Equality(BuildDependencyInfo, BuildDependencyInfo)
public static bool operator ==(BuildDependencyInfo left, BuildDependencyInfo right)
Parameters
| Type | Name | Description |
|---|---|---|
| BuildDependencyInfo | left | |
| BuildDependencyInfo | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Inequality(BuildDependencyInfo, BuildDependencyInfo)
public static bool operator !=(BuildDependencyInfo left, BuildDependencyInfo right)
Parameters
| Type | Name | Description |
|---|---|---|
| BuildDependencyInfo | left | |
| BuildDependencyInfo | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |