Table of Contents

Class EntityCloner.CloneContext

Namespace
Stride.Engine.Design
Assembly
Stride.Engine.dll

Helper class for cloning Entity.

public class EntityCloner.CloneContext
Inheritance
EntityCloner.CloneContext
Extension Methods

Fields

ClonedObjects

Lists objects that should be cloned.

public HashSet<object> ClonedObjects

Field Value

HashSet<object>

EntitySerializerSelector

Special serializer that goes through EntitySerializerSelector and CloneEntityComponentSerializer<T>.

public SerializerSelector EntitySerializerSelector

Field Value

SerializerSelector

MappedObjects

public EntityCloner.TryGetValueFunction<object, object> MappedObjects

Field Value

EntityCloner.TryGetValueFunction<object, object>

MemoryStream

public MemoryStream MemoryStream

Field Value

MemoryStream

SerializedObjects

public readonly HashSet<object> SerializedObjects

Field Value

HashSet<object>

SharedObjects

Stores objects that should be reused in the new cloned instance.

public readonly List<object> SharedObjects

Field Value

List<object>

Methods

Cleanup()

public void Cleanup()