Struct BuildAssetLink
A structure representing a link (a dependency) between two BuildAssetNode instances (assets).
public 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
source
BuildAssetNodeThe source asset of the dependency.
target
BuildAssetNodeThe target asset of the dependency.
dependencyType
BuildDependencyTypeThe type of dependency.
Properties
DependencyType
The type of dependency.
public readonly BuildDependencyType DependencyType { get; }
Property Value
Source
The source asset of the dependency.
public readonly BuildAssetNode Source { get; }
Property Value
Target
The target asset of the dependency.
public readonly 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
other
BuildAssetLinkAn 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
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and 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
type
BuildDependencyTypeA 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
type
BuildDependencyTypeA 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
left
BuildAssetLinkright
BuildAssetLink
Returns
operator !=(BuildAssetLink, BuildAssetLink)
public static bool operator !=(BuildAssetLink left, BuildAssetLink right)
Parameters
left
BuildAssetLinkright
BuildAssetLink