Struct BuildDependencyInfo
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
TypeThe type of asset targeted by this dependency info.
compilationContext
TypeThe compilation context in which to compile the target asset.
dependencyType
BuildDependencyTypeThe type of dependency.
Fields
AssetType
The type of asset targeted by this dependency.
public readonly Type AssetType
Field Value
CompilationContext
The compilation context in which to compile the target asset.
public readonly Type CompilationContext
Field Value
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
Methods
Equals(BuildDependencyInfo)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(BuildDependencyInfo other)
Parameters
other
BuildDependencyInfoAn 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.
Operators
operator ==(BuildDependencyInfo, BuildDependencyInfo)
public static bool operator ==(BuildDependencyInfo left, BuildDependencyInfo right)
Parameters
left
BuildDependencyInforight
BuildDependencyInfo
Returns
operator !=(BuildDependencyInfo, BuildDependencyInfo)
public static bool operator !=(BuildDependencyInfo left, BuildDependencyInfo right)
Parameters
left
BuildDependencyInforight
BuildDependencyInfo