Table of Contents

Class CloneEntityComponentSerializer<T>

Namespace
Stride.Engine.Design
Assembly
Stride.Engine.dll
public class CloneEntityComponentSerializer<T> : DataSerializer<T> where T : EntityComponent, new()

Type Parameters

T
Inheritance
CloneEntityComponentSerializer<T>
Inherited Members

Methods

PreSerialize(ref T, ArchiveMode, SerializationStream)

Performs the first step of serialization or deserialization.

public override void PreSerialize(ref T entityComponent, ArchiveMode mode, SerializationStream stream)

Parameters

entityComponent T
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 T, ArchiveMode, SerializationStream)

Serializes or deserializes the given object obj.

public override void Serialize(ref T entityComponent, ArchiveMode mode, SerializationStream stream)

Parameters

entityComponent T
mode ArchiveMode

The serialization mode.

stream SerializationStream

The stream to serialize or deserialize to.