AssetPartCollectionSerializer<TAssetPartDesign, TAssetPart> Class
Namespace: Stride.Core.AssetsAssembly: Stride.Core.Assets.dll
public class AssetPartCollectionSerializer<TAssetPartDesign, TAssetPart> : DataSerializer<AssetPartCollection<TAssetPartDesign, TAssetPart>>, IDataSerializerGenericInstantiation where TAssetPartDesign : IAssetPartDesign<TAssetPart> where TAssetPart : IIdentifiable
Type Parameters
Name | Description |
---|---|
TAssetPartDesign | |
TAssetPart |
Name | Description | |
---|---|---|
Methods | ||
EnumerateGenericInstantiations(SerializerSelector, IList<Type>) | Enumerates required DataSerializer required by this instance of DataSerializer. |
|
Initialize(SerializerSelector) | Initializes the specified serializer. |
|
PreSerialize(ref AssetPartCollection<TAssetPartDesign, TAssetPart>, ArchiveMode, SerializationStream) | Performs the first step of serialization or deserialization. |
|
Serialize(ref AssetPartCollection<TAssetPartDesign, TAssetPart>, ArchiveMode, SerializationStream) | Serializes or deserializes the given object |
Methods
EnumerateGenericInstantiations(SerializerSelector, IList<Type>)
Enumerates required DataSerializer required by this instance of DataSerializer.
public void EnumerateGenericInstantiations(SerializerSelector serializerSelector, IList<Type> genericInstantiations)
Parameters
Type | Name | Description |
---|---|---|
SerializerSelector | serializerSelector | |
System.Collections.Generic.IList<System.Type> | genericInstantiations |
Remarks
The code won't be executed, it will only be scanned for typeof() operands by the assembly processor. Null is authorized in enumeration (for now).
Initialize(SerializerSelector)
Initializes the specified serializer.
public override void Initialize(SerializerSelector serializerSelector)
Parameters
Type | Name | Description |
---|---|---|
SerializerSelector | serializerSelector | The serializer. |
Overrides
Remarks
This method should be thread-safe and OK to call multiple times.
PreSerialize(ref AssetPartCollection<TAssetPartDesign, TAssetPart>, ArchiveMode, SerializationStream)
Performs the first step of serialization or deserialization.
public override void PreSerialize(ref AssetPartCollection<TAssetPartDesign, TAssetPart> obj, ArchiveMode mode, SerializationStream stream)
Parameters
Type | Name | Description |
---|---|---|
AssetPartCollection<TAssetPartDesign, TAssetPart> | obj | |
ArchiveMode | mode | The serialization mode. |
SerializationStream | stream | The stream to serialize or deserialize to. |
Overrides
Remarks
Typically, it will instantiate the object if [null], and if it's a collection clear it.
Serialize(ref AssetPartCollection<TAssetPartDesign, TAssetPart>, ArchiveMode, SerializationStream)
Serializes or deserializes the given object obj
.
public override void Serialize(ref AssetPartCollection<TAssetPartDesign, TAssetPart> obj, ArchiveMode mode, SerializationStream stream)
Parameters
Type | Name | Description |
---|---|---|
AssetPartCollection<TAssetPartDesign, TAssetPart> | obj | |
ArchiveMode | mode | The serialization mode. |
SerializationStream | stream | The stream to serialize or deserialize to. |