Table of Contents

Class AnimationKeyValuePairArraySerializer<T>

Namespace
Stride.Animations
Assembly
Stride.Engine.dll
public class AnimationKeyValuePairArraySerializer<T> : DataSerializer<AnimationKeyValuePair<T>[]> where T : struct

Type Parameters

T
Inheritance
AnimationKeyValuePairArraySerializer<T>
Inherited Members

Methods

Initialize(SerializerSelector)

Initializes the specified serializer.

public override void Initialize(SerializerSelector serializerSelector)

Parameters

serializerSelector SerializerSelector

The serializer.

Remarks

This method should be thread-safe and OK to call multiple times.

PreSerialize(ref AnimationKeyValuePair<T>[], ArchiveMode, SerializationStream)

Performs the first step of serialization or deserialization.

public override void PreSerialize(ref AnimationKeyValuePair<T>[] obj, ArchiveMode mode, SerializationStream stream)

Parameters

obj AnimationKeyValuePair<T>[]

The object to process.

mode ArchiveMode

The serialization mode.

stream SerializationStream

The stream to serialize or deserialize to.

Remarks

Typically, it will instantiate the object if [null], and if it's a collection clear it.

Serialize(ref AnimationKeyValuePair<T>[], ArchiveMode, SerializationStream)

Serializes or deserializes the given object obj.

public override void Serialize(ref AnimationKeyValuePair<T>[] obj, ArchiveMode mode, SerializationStream stream)

Parameters

obj AnimationKeyValuePair<T>[]

The object to serialize or deserialize.

mode ArchiveMode

The serialization mode.

stream SerializationStream

The stream to serialize or deserialize to.