Table of Contents

Class AssetCompositeHierarchyExtensions

Namespace
Stride.Core.Assets
Assembly
Stride.Core.Assets.dll
public static class AssetCompositeHierarchyExtensions
Inheritance
AssetCompositeHierarchyExtensions

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

asset AssetCompositeHierarchyData<TAssetPartDesign, TAssetPart>

This hierarchy.

Returns

IEnumerable<TAssetPartDesign>

A sequence containing the root design parts of this hierarchy.

Type Parameters

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

asset AssetCompositeHierarchyData<TAssetPartDesign, TAssetPart>

This hierarchy.

other AssetCompositeHierarchyData<TAssetPartDesign, TAssetPart>

The other hierarchy which parts will added to this hierarchy.

Type Parameters

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.