Table of Contents

Class AssetMemberVisitorBase

Namespace
Stride.Core.Assets.Visitors
Assembly
Stride.Core.Assets.dll
public abstract class AssetMemberVisitorBase : AssetVisitorBase, IDataVisitor
Inheritance
DataVisitorBase
AssetMemberVisitorBase
Implements
IDataVisitor
Inherited Members
DataVisitorBase.TypeDescriptorFactory
DataVisitorBase.CustomVisitors
DataVisitorBase.CurrentPath
DataVisitorBase.AttributeRegistry
DataVisitorBase.Reset()
DataVisitorBase.VisitNull()

Properties

MemberPath

Gets the Stride.Core.Reflection.MemberPath that will be checked against when visiting.

protected MemberPath MemberPath { get; set; }

Property Value

MemberPath
See Also
CurrentPath

Methods

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.

VisitAssetMember(object, ITypeDescriptor)

Called when Stride.Core.Reflection.DataVisitorBase.CurrentPath matches the MemberPath given when creating this instance.

protected abstract void VisitAssetMember(object value, ITypeDescriptor descriptor)

Parameters

value object
descriptor ITypeDescriptor

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.

VisitObject(object, ObjectDescriptor, bool)

Visits an object (either a class or a struct)

public override void VisitObject(object obj, ObjectDescriptor descriptor, bool visitMembers)

Parameters

obj object

The object.

descriptor ObjectDescriptor

The descriptor.

visitMembers bool

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.

VisitPrimitive(object, PrimitiveDescriptor)

Visits a primitive (int, float, string...etc.)

public override void VisitPrimitive(object primitive, PrimitiveDescriptor descriptor)

Parameters

primitive object

The primitive.

descriptor PrimitiveDescriptor

The descriptor.

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.