Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    EntityCloner.CloneContext Class

    Namespace: Stride.Engine.Design
    Assembly: 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()
    | Improve this Doc View Source

    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>
    | Improve this Doc View Source

    Methods


    Cleanup()

    public void Cleanup()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation