Class IdentifiableObjectSerializer
- Namespace
- Stride.Core.Assets.Serializers
- Assembly
- Stride.Core.Assets.dll
A serializer for IIdentifiable instances, that can either serialize them directly or as an object reference.
public sealed class IdentifiableObjectSerializer : ChainedSerializer, IYamlSerializable
- Inheritance
-
ChainedSerializerIdentifiableObjectSerializer
- Implements
-
IYamlSerializable
- Inherited Members
-
ChainedSerializer.PrevChainedSerializer.NextChainedSerializer.FirstChainedSerializer.LastChainedSerializer.FindPrevious<T>()ChainedSerializer.FindNext<T>()ChainedSerializer.Prepend(ChainedSerializer)ChainedSerializer.Append(ChainedSerializer)
Fields
Prefix
public const string Prefix = "ref!! "
Field Value
Methods
ReadYaml(ref ObjectContext)
Reads this object's state from a YAML parser.
public override object ReadYaml(ref ObjectContext objectContext)
Parameters
objectContext
ObjectContext
Returns
- object
A instance of the object deserialized from Yaml.
TryCreate(SerializerContext, ITypeDescriptor)
public IYamlSerializable TryCreate(SerializerContext context, ITypeDescriptor typeDescriptor)
Parameters
context
SerializerContexttypeDescriptor
ITypeDescriptor
Returns
- IYamlSerializable
Visit(ref VisitorContext)
public void Visit(ref VisitorContext context)
Parameters
context
VisitorContext
WriteYaml(ref ObjectContext)
Writes the specified object context to a YAML emitter.
public override void WriteYaml(ref ObjectContext objectContext)
Parameters
objectContext
ObjectContextThe object context.