Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    AssetCompositeHierarchyExtensions Class

    Namespace: Stride.Core.Assets
    Assembly: Stride.Core.Assets.dll

    Extension methods for AssetCompositeHierarchy<TAssetPartDesign, TAssetPart> and AssetCompositeHierarchyData<TAssetPartDesign, TAssetPart>

    System.Object → AssetCompositeHierarchyExtensions
    Derived from AssetCompositeHierarchyExtensions:

    public static class AssetCompositeHierarchyExtensions
    Name Description
    Methods
    EnumerateRootPartDesigns<TAssetPartDesign, TAssetPart>(AssetCompositeHierarchyData<TAssetPartDesign, TAssetPart>)

    Enumerates the root design parts of this hierarchy.

    MergeInto<TAssetPartDesign, TAssetPart>(AssetCompositeHierarchyData<TAssetPartDesign, TAssetPart>, AssetCompositeHierarchyData<TAssetPartDesign, TAssetPart>)

    Merges the other hierarchy into this hierarchy.

    | Improve this Doc View Source

    Methods


    EnumerateRootPartDesigns<TAssetPartDesign, TAssetPart>(AssetCompositeHierarchyData<TAssetPartDesign, TAssetPart>)

    Enumerates the root design parts of this hierarchy.

    [Pure]
    public static IEnumerable<TAssetPartDesign> EnumerateRootPartDesigns<TAssetPartDesign, TAssetPart>(this AssetCompositeHierarchyData<TAssetPartDesign, TAssetPart> asset)
        where TAssetPartDesign : class, IAssetPartDesign<TAssetPart> where TAssetPart : class, IIdentifiable
    Parameters
    Type Name Description
    AssetCompositeHierarchyData<TAssetPartDesign, TAssetPart> asset

    This hierarchy.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<TAssetPartDesign>

    A sequence containing the root design parts of this hierarchy.

    Type Parameters
    Name Description
    TAssetPartDesign

    The type used for the design information of a part.

    TAssetPart

    The type used for the actual parts,


    MergeInto<TAssetPartDesign, TAssetPart>(AssetCompositeHierarchyData<TAssetPartDesign, TAssetPart>, AssetCompositeHierarchyData<TAssetPartDesign, TAssetPart>)

    Merges the other hierarchy into this hierarchy.

    public static void MergeInto<TAssetPartDesign, TAssetPart>(this AssetCompositeHierarchyData<TAssetPartDesign, TAssetPart> asset, AssetCompositeHierarchyData<TAssetPartDesign, TAssetPart> other)
        where TAssetPartDesign : class, IAssetPartDesign<TAssetPart> where TAssetPart : class, IIdentifiable
    Parameters
    Type Name Description
    AssetCompositeHierarchyData<TAssetPartDesign, TAssetPart> asset

    This hierarchy.

    AssetCompositeHierarchyData<TAssetPartDesign, TAssetPart> other

    The other hierarchy which parts will added to this hierarchy.

    Type Parameters
    Name Description
    TAssetPartDesign

    The type used for the design information of a part.

    TAssetPart

    The type used for the actual parts,

    Remarks

    This method does not check whether the two hierarchies have independent parts and will fail otherwise.


    • Improve this Doc
    • View Source
    In This Article

    Back to top

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