BuildAssetLink Struct
Namespace: Stride.Core.Assets.AnalysisAssembly: Stride.Core.Assets.dll
A structure representing a link (a dependency) between two BuildAssetNode instances (assets).
public struct BuildAssetLink : IEquatable<BuildAssetLink>
Name | Description | |
---|---|---|
Constructors | ||
BuildAssetLink(BuildAssetNode, BuildAssetNode, BuildDependencyType) | Initialize a new instance of the BuildAssetLink structure. |
|
Properties | ||
DependencyType | The type of dependency. |
|
Source | The source asset of the dependency. |
|
Target | The target asset of the dependency. |
|
Methods | ||
Equals(BuildAssetLink) | ||
Equals(Object) | ||
GetHashCode() | ||
HasAll(BuildDependencyType) | Indicates whether this BuildAssetLink has at all dependencies of the given flags. |
|
HasOne(BuildDependencyType) | Indicates whether this BuildAssetLink has at least one of the dependency of the given flags. |
|
ToString() | ||
Operators | ||
Equality(BuildAssetLink, BuildAssetLink) | ||
Inequality(BuildAssetLink, BuildAssetLink) |
Constructors
BuildAssetLink(BuildAssetNode, BuildAssetNode, BuildDependencyType)
Initialize a new instance of the BuildAssetLink structure.
public BuildAssetLink(BuildAssetNode source, BuildAssetNode target, BuildDependencyType dependencyType)
Parameters
Type | Name | Description |
---|---|---|
BuildAssetNode | source | The source asset of the dependency. |
BuildAssetNode | target | The target asset of the dependency. |
BuildDependencyType | dependencyType | The type of dependency. |
Properties
DependencyType
The type of dependency.
public readonly BuildDependencyType DependencyType { get; }
Property Value
Type | Description |
---|---|
BuildDependencyType |
Source
The source asset of the dependency.
public readonly BuildAssetNode Source { get; }
Property Value
Type | Description |
---|---|
BuildAssetNode |
Target
The target asset of the dependency.
public readonly BuildAssetNode Target { get; }
Property Value
Type | Description |
---|---|
BuildAssetNode |
Methods
Equals(BuildAssetLink)
public bool Equals(BuildAssetLink other)
Parameters
Type | Name | Description |
---|---|---|
BuildAssetLink | 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
HasAll(BuildDependencyType)
Indicates whether this BuildAssetLink has at all dependencies of the given flags.
public bool HasAll(BuildDependencyType type)
Parameters
Type | Name | Description |
---|---|---|
BuildDependencyType | type | A bitset of BuildDependencyType. |
Returns
Type | Description |
---|---|
System.Boolean | True if it has all the given dependencies, false otherwise. |
HasOne(BuildDependencyType)
Indicates whether this BuildAssetLink has at least one of the dependency of the given flags.
public bool HasOne(BuildDependencyType type)
Parameters
Type | Name | Description |
---|---|---|
BuildDependencyType | type | A bitset of BuildDependencyType. |
Returns
Type | Description |
---|---|
System.Boolean | True if it has at least one of the given dependencies, false otherwise. |
ToString()
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
Operators
Equality(BuildAssetLink, BuildAssetLink)
public static bool operator ==(BuildAssetLink left, BuildAssetLink right)
Parameters
Type | Name | Description |
---|---|---|
BuildAssetLink | left | |
BuildAssetLink | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(BuildAssetLink, BuildAssetLink)
public static bool operator !=(BuildAssetLink left, BuildAssetLink right)
Parameters
Type | Name | Description |
---|---|---|
BuildAssetLink | left | |
BuildAssetLink | right |
Returns
Type | Description |
---|---|
System.Boolean |