Table of Contents

Struct BuildDependencyInfo

Namespace
Stride.Core.Assets.Analysis
Assembly
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>
Implements
Inherited Members

Constructors

BuildDependencyInfo(Type, Type, BuildDependencyType)

Initializes a new instance of the BuildDependencyInfo structure.

public BuildDependencyInfo(Type assetType, Type compilationContext, BuildDependencyType dependencyType)

Parameters

assetType Type

The type of asset targeted by this dependency info.

compilationContext Type

The compilation context in which to compile the target asset.

dependencyType BuildDependencyType

The type of dependency.

Fields

AssetType

The type of asset targeted by this dependency.

public readonly Type AssetType

Field Value

Type

CompilationContext

The compilation context in which to compile the target asset.

public readonly Type CompilationContext

Field Value

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

BuildDependencyType

Methods

Equals(BuildDependencyInfo)

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

public bool Equals(BuildDependencyInfo other)

Parameters

other BuildDependencyInfo

An object to compare with this object.

Returns

bool

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

Equals(object)

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.

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.

Operators

operator ==(BuildDependencyInfo, BuildDependencyInfo)

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

Parameters

left BuildDependencyInfo
right BuildDependencyInfo

Returns

bool

operator !=(BuildDependencyInfo, BuildDependencyInfo)

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

Parameters

left BuildDependencyInfo
right BuildDependencyInfo

Returns

bool