Table of Contents

Class UnloadableObjectRemover

Namespace
Stride.Core.Assets
Assembly
Stride.Core.Assets.dll

Removes objects implementing IYamlProxy from the object.

public class UnloadableObjectRemover : AssetVisitorBase, IDataVisitor
Inheritance
DataVisitorBase
UnloadableObjectRemover
Implements
IDataVisitor
Inherited Members
DataVisitorBase.TypeDescriptorFactory
DataVisitorBase.CustomVisitors
DataVisitorBase.CurrentPath
DataVisitorBase.AttributeRegistry
DataVisitorBase.Reset()
DataVisitorBase.VisitNull()

Methods

Discover(object)

public static IReadOnlyList<UnloadableObjectRemover.UnloadableItem> Discover(object obj)

Parameters

obj object

Returns

IReadOnlyList<UnloadableObjectRemover.UnloadableItem>

Run(object)

public static IReadOnlyList<UnloadableObjectRemover.UnloadableItem> Run(object obj)

Parameters

obj object

Returns

IReadOnlyList<UnloadableObjectRemover.UnloadableItem>

VisitArrayItem(Array, ArrayDescriptor, int, object, ITypeDescriptor)

Visits an array item.

public override void VisitArrayItem(Array array, ArrayDescriptor descriptor, int index, object item, ITypeDescriptor itemDescriptor)

Parameters

array Array

The array.

descriptor ArrayDescriptor

The descriptor.

index int

The index.

item object

The item.

itemDescriptor ITypeDescriptor

The item descriptor.

VisitCollectionItem(IEnumerable, CollectionDescriptor, int, object, ITypeDescriptor)

Visits a collection item.

public override void VisitCollectionItem(IEnumerable collection, CollectionDescriptor descriptor, int index, object item, ITypeDescriptor itemDescriptor)

Parameters

collection IEnumerable

The collection.

descriptor CollectionDescriptor

The descriptor.

index int

The index.

item object

The item.

itemDescriptor ITypeDescriptor

The item descriptor.

VisitDictionaryKeyValue(object, DictionaryDescriptor, object, ITypeDescriptor, object, ITypeDescriptor)

Visits a dictionary key-value.

public override void VisitDictionaryKeyValue(object dictionary, DictionaryDescriptor descriptor, object key, ITypeDescriptor keyDescriptor, object value, ITypeDescriptor valueDescriptor)

Parameters

dictionary object

The dictionary.

descriptor DictionaryDescriptor

The descriptor.

key object

The key.

keyDescriptor ITypeDescriptor

The key descriptor.

value object

The value.

valueDescriptor ITypeDescriptor

The value descriptor.

VisitObjectMember(object, ObjectDescriptor, IMemberDescriptor, object)

Visits an object member.

public override void VisitObjectMember(object container, ObjectDescriptor containerDescriptor, IMemberDescriptor member, object value)

Parameters

container object

The container.

containerDescriptor ObjectDescriptor

The container descriptor.

member IMemberDescriptor

The member.

value object

The value.

VisitSetItem(IEnumerable, SetDescriptor, object, ITypeDescriptor)

Visits a set item.

public override void VisitSetItem(IEnumerable set, SetDescriptor descriptor, object item, ITypeDescriptor itemDescriptor)

Parameters

set IEnumerable

The set.

descriptor SetDescriptor

The descriptor.

item object

The item.

itemDescriptor ITypeDescriptor

The item descriptor.