Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    BuildAssetLink Struct

    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>
    Name Description
    Constructors
    BuildAssetLink(BuildAssetNode, BuildAssetNode, BuildDependencyType)

    Initialize a new instance of the BuildAssetLink structure.

    Properties
    DependencyType

    The type of dependency.

    Source

    The source asset of the dependency.

    Target

    The target asset of the dependency.

    Methods
    Equals(BuildAssetLink)
    Equals(Object)
    GetHashCode()
    HasAll(BuildDependencyType)

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

    HasOne(BuildDependencyType)

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

    ToString()
    Operators
    Equality(BuildAssetLink, BuildAssetLink)
    Inequality(BuildAssetLink, BuildAssetLink)
    | Improve this Doc View Source

    Constructors


    BuildAssetLink(BuildAssetNode, BuildAssetNode, BuildDependencyType)

    Initialize a new instance of the BuildAssetLink structure.

    public BuildAssetLink(BuildAssetNode source, BuildAssetNode target, BuildDependencyType dependencyType)
    Parameters
    Type Name Description
    BuildAssetNode source

    The source asset of the dependency.

    BuildAssetNode target

    The target asset of the dependency.

    BuildDependencyType dependencyType

    The type of dependency.

    | Improve this Doc View Source

    Properties


    DependencyType

    The type of dependency.

    public readonly BuildDependencyType DependencyType { get; }
    Property Value
    Type Description
    BuildDependencyType

    Source

    The source asset of the dependency.

    public readonly BuildAssetNode Source { get; }
    Property Value
    Type Description
    BuildAssetNode

    Target

    The target asset of the dependency.

    public readonly BuildAssetNode Target { get; }
    Property Value
    Type Description
    BuildAssetNode
    | Improve this Doc View Source

    Methods


    Equals(BuildAssetLink)

    public bool Equals(BuildAssetLink other)
    Parameters
    Type Name Description
    BuildAssetLink other
    Returns
    Type Description
    System.Boolean

    Equals(Object)

    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)

    GetHashCode()

    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()

    HasAll(BuildDependencyType)

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

    public bool HasAll(BuildDependencyType type)
    Parameters
    Type Name Description
    BuildDependencyType type

    A bitset of BuildDependencyType.

    Returns
    Type Description
    System.Boolean

    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 Name Description
    BuildDependencyType type

    A bitset of BuildDependencyType.

    Returns
    Type Description
    System.Boolean

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


    ToString()

    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()
    | Improve this Doc View Source

    Operators


    Equality(BuildAssetLink, BuildAssetLink)

    public static bool operator ==(BuildAssetLink left, BuildAssetLink right)
    Parameters
    Type Name Description
    BuildAssetLink left
    BuildAssetLink right
    Returns
    Type Description
    System.Boolean

    Inequality(BuildAssetLink, BuildAssetLink)

    public static bool operator !=(BuildAssetLink left, BuildAssetLink right)
    Parameters
    Type Name Description
    BuildAssetLink left
    BuildAssetLink right
    Returns
    Type Description
    System.Boolean

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation