Table of Contents

Class AssetPartCollection<TAssetPartDesign, TAssetPart>

Namespace
Stride.Core.Assets
Assembly
Stride.Core.Assets.dll
[DataSerializer(typeof(AssetPartCollectionSerializer<,>), Mode = DataSerializerGenericMode.GenericArguments)]
public sealed class AssetPartCollection<TAssetPartDesign, TAssetPart> : SortedList<Guid, TAssetPartDesign>, IDictionary<Guid, TAssetPartDesign>, ICollection<KeyValuePair<Guid, TAssetPartDesign>>, IReadOnlyDictionary<Guid, TAssetPartDesign>, IReadOnlyCollection<KeyValuePair<Guid, TAssetPartDesign>>, IEnumerable<KeyValuePair<Guid, TAssetPartDesign>>, IDictionary, ICollection, IEnumerable where TAssetPartDesign : IAssetPartDesign<TAssetPart> where TAssetPart : IIdentifiable

Type Parameters

TAssetPartDesign
TAssetPart
Inheritance
SortedList<Guid, TAssetPartDesign>
AssetPartCollection<TAssetPartDesign, TAssetPart>
Implements
IDictionary<Guid, TAssetPartDesign>
ICollection<KeyValuePair<Guid, TAssetPartDesign>>
IReadOnlyDictionary<Guid, TAssetPartDesign>
IEnumerable<KeyValuePair<Guid, TAssetPartDesign>>
Inherited Members
Extension Methods

Methods

Add(KeyValuePair<Guid, TAssetPartDesign>)

public void Add(KeyValuePair<Guid, TAssetPartDesign> part)

Parameters

part KeyValuePair<Guid, TAssetPartDesign>

Add(TAssetPartDesign)

public void Add(TAssetPartDesign part)

Parameters

part TAssetPartDesign

RefreshKeys()

Refreshes the keys of this collection. Must be called if some ids of the contained parts have changed.

public void RefreshKeys()