Table of Contents

Struct BuildAssetLink

Namespace
Stride.Core.Assets.Analysis
Assembly
Stride.Core.Assets.dll

A structure representing a link (a dependency) between two BuildAssetNode instances (assets).

public struct BuildAssetLink : IEquatable<BuildAssetLink>
Implements

Constructors

Initialize a new instance of the BuildAssetLink structure.

public BuildAssetLink(BuildAssetNode source, BuildAssetNode target, BuildDependencyType dependencyType)

Parameters

source BuildAssetNode

The source asset of the dependency.

target BuildAssetNode

The target asset of the dependency.

dependencyType BuildDependencyType

The type of dependency.

Properties

The type of dependency.

public readonly BuildDependencyType DependencyType { get; }

Property Value

BuildDependencyType

The source asset of the dependency.

public readonly BuildAssetNode Source { get; }

Property Value

BuildAssetNode

The target asset of the dependency.

public readonly BuildAssetNode Target { get; }

Property Value

BuildAssetNode

Methods

Indicates whether the current object is equal to another object of the same type.

public bool Equals(BuildAssetLink other)

Parameters

other BuildAssetLink

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The 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.

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.

Indicates whether this BuildAssetLink has at all dependencies of the given flags.

public bool HasAll(BuildDependencyType type)

Parameters

type BuildDependencyType

A bitset of BuildDependencyType.

Returns

bool

True if it has all the given dependencies, false otherwise.

Indicates whether this BuildAssetLink has at least one of the dependency of the given flags.

public bool HasOne(BuildDependencyType type)

Parameters

type BuildDependencyType

A bitset of BuildDependencyType.

Returns

bool

True if it has at least one of the given dependencies, false otherwise.

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Operators

public static bool operator ==(BuildAssetLink left, BuildAssetLink right)

Parameters

left BuildAssetLink
right BuildAssetLink

Returns

bool
public static bool operator !=(BuildAssetLink left, BuildAssetLink right)

Parameters

left BuildAssetLink
right BuildAssetLink

Returns

bool