AssetCompositeHierarchyExtensions Class
Namespace: Stride.Core.AssetsAssembly: Stride.Core.Assets.dll
Extension methods for AssetCompositeHierarchy<TAssetPartDesign, TAssetPart> and AssetCompositeHierarchyData<TAssetPartDesign, TAssetPart>
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 |
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.