EntityCloner.CloneContext Class
Namespace: Stride.Engine.DesignAssembly: Stride.Engine.dll
Helper class for cloning Entity.
System.Object →
EntityCloner.CloneContext
Derived from EntityCloner.CloneContext:
public class CloneContext
Name | Description | |
---|---|---|
Fields | ||
ClonedObjects | Lists objects that should be cloned. |
|
EntitySerializerSelector | Special serializer that goes through EntitySerializerSelector and CloneEntityComponentSerializer<T>. |
|
MappedObjects | ||
MemoryStream | ||
SerializedObjects | ||
SharedObjects | Stores objects that should be reused in the new cloned instance. |
|
Methods | ||
Cleanup() |
Fields
ClonedObjects
Lists objects that should be cloned.
public HashSet<object> ClonedObjects
Field Value
Type | Description |
---|---|
System.Collections.Generic.HashSet<System.Object> |
EntitySerializerSelector
Special serializer that goes through EntitySerializerSelector and CloneEntityComponentSerializer<T>.
public SerializerSelector EntitySerializerSelector
Field Value
Type | Description |
---|---|
SerializerSelector |
MappedObjects
public EntityCloner.TryGetValueFunction<object, object> MappedObjects
Field Value
Type | Description |
---|---|
EntityCloner.TryGetValueFunction<System.Object, System.Object> |
MemoryStream
public MemoryStream MemoryStream
Field Value
Type | Description |
---|---|
System.IO.MemoryStream |
SerializedObjects
public readonly HashSet<object> SerializedObjects
Field Value
Type | Description |
---|---|
System.Collections.Generic.HashSet<System.Object> |
SharedObjects
Stores objects that should be reused in the new cloned instance.
public readonly List<object> SharedObjects
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<System.Object> |
Methods
Cleanup()
public void Cleanup()