IdentifiableObjectSerializer Class
Namespace: Stride.Core.Assets.SerializersAssembly: Stride.Core.Assets.dll
A serializer for IIdentifiable instances, that can either serialize them directly or as an object reference.
System.Object → Stride.Core.Yaml.Serialization.Serializers.ChainedSerializer →
IdentifiableObjectSerializer
Derived from IdentifiableObjectSerializer:
public sealed class IdentifiableObjectSerializer : ChainedSerializer, IYamlSerializable
Name | Description | |
---|---|---|
Fields | ||
Prefix | ||
Methods | ||
ReadYaml(ref ObjectContext) | ||
TryCreate(SerializerContext, ITypeDescriptor) | ||
Visit(ref VisitorContext) | ||
WriteYaml(ref ObjectContext) |
Fields
Prefix
public const string Prefix = "ref!! "
Field Value
Type | Description |
---|---|
System.String |
Methods
ReadYaml(ref ObjectContext)
public override object ReadYaml(ref ObjectContext objectContext)
Parameters
Type | Name | Description |
---|---|---|
Stride.Core.Yaml.Serialization.ObjectContext | objectContext |
Returns
Type | Description |
---|---|
System.Object |
Overrides
Stride.Core.Yaml.Serialization.Serializers.ChainedSerializer.ReadYaml(Stride.Core.Yaml.Serialization.ObjectContext)
TryCreate(SerializerContext, ITypeDescriptor)
public IYamlSerializable TryCreate(SerializerContext context, ITypeDescriptor typeDescriptor)
Parameters
Type | Name | Description |
---|---|---|
Stride.Core.Yaml.Serialization.SerializerContext | context | |
Stride.Core.Reflection.ITypeDescriptor | typeDescriptor |
Returns
Type | Description |
---|---|
Stride.Core.Yaml.Serialization.IYamlSerializable |
Visit(ref VisitorContext)
public void Visit(ref VisitorContext context)
Parameters
Type | Name | Description |
---|---|---|
Stride.Core.Reflection.VisitorContext | context |
WriteYaml(ref ObjectContext)
public override void WriteYaml(ref ObjectContext objectContext)
Parameters
Type | Name | Description |
---|---|---|
Stride.Core.Yaml.Serialization.ObjectContext | objectContext |
Overrides
Stride.Core.Yaml.Serialization.Serializers.ChainedSerializer.WriteYaml(Stride.Core.Yaml.Serialization.ObjectContext)
Inherited Members
Stride.Core.Yaml.Serialization.Serializers.ChainedSerializer.Prev
Stride.Core.Yaml.Serialization.Serializers.ChainedSerializer.Next
Stride.Core.Yaml.Serialization.Serializers.ChainedSerializer.First
Stride.Core.Yaml.Serialization.Serializers.ChainedSerializer.Last
Stride.Core.Yaml.Serialization.Serializers.ChainedSerializer.FindPrevious<T>()
Stride.Core.Yaml.Serialization.Serializers.ChainedSerializer.FindNext<T>()
Stride.Core.Yaml.Serialization.Serializers.ChainedSerializer.Prepend(Stride.Core.Yaml.Serialization.Serializers.ChainedSerializer)
Stride.Core.Yaml.Serialization.Serializers.ChainedSerializer.Append(Stride.Core.Yaml.Serialization.Serializers.ChainedSerializer)