Struct BuildAssetLink
A structure representing a link (a dependency) between two BuildAssetNode instances (assets).
public readonly struct BuildAssetLink : IEquatable<BuildAssetLink>- Implements
Constructors
BuildAssetLink(BuildAssetNode, BuildAssetNode, BuildDependencyType)
Initialize a new instance of the BuildAssetLink structure.
public BuildAssetLink(BuildAssetNode source, BuildAssetNode target, BuildDependencyType dependencyType)Parameters
- sourceBuildAssetNode
- The source asset of the dependency. 
- targetBuildAssetNode
- The target asset of the dependency. 
- dependencyTypeBuildDependencyType
- The type of dependency. 
Properties
DependencyType
The type of dependency.
public BuildDependencyType DependencyType { get; }Property Value
Source
The source asset of the dependency.
public BuildAssetNode Source { get; }Property Value
Target
The target asset of the dependency.
public BuildAssetNode Target { get; }Property Value
Methods
Equals(BuildAssetLink)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(BuildAssetLink other)Parameters
- otherBuildAssetLink
- An object to compare with this object. 
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)Parameters
- objobject
- The object to compare with the current instance. 
Returns
- bool
- true if - objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()Returns
- int
- A 32-bit signed integer that is the hash code for this instance. 
HasAll(BuildDependencyType)
Indicates whether this BuildAssetLink has at all dependencies of the given flags.
public bool HasAll(BuildDependencyType type)Parameters
- typeBuildDependencyType
- A bitset of BuildDependencyType. 
Returns
- bool
- 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
- typeBuildDependencyType
- A bitset of BuildDependencyType. 
Returns
- bool
- True if it has at least one of the given dependencies, false otherwise. 
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()Returns
- string
- The fully qualified type name. 
Operators
operator ==(BuildAssetLink, BuildAssetLink)
public static bool operator ==(BuildAssetLink left, BuildAssetLink right)Parameters
- leftBuildAssetLink
- rightBuildAssetLink
Returns
operator !=(BuildAssetLink, BuildAssetLink)
public static bool operator !=(BuildAssetLink left, BuildAssetLink right)Parameters
- leftBuildAssetLink
- rightBuildAssetLink