KeyWithIdSerializer Class
Namespace: Stride.Core.YamlAssembly: Stride.Core.Assets.dll
A Yaml serializer for IKeyWithId.
System.Object → Stride.Core.Yaml.Serialization.Serializers.ScalarSerializerBase → Stride.Core.Yaml.AssetScalarSerializerBase → ItemIdSerializerBase →
KeyWithIdSerializer
Derived from KeyWithIdSerializer:
[YamlSerializerFactory(new string[]{"Assets"})]
public class KeyWithIdSerializer : ItemIdSerializerBase, IYamlSerializable, IYamlSerializableFactory, IDataCustomVisitor
Name | Description | |
---|---|---|
Fields | ||
OverrideKeyInfoKey | A key used in properties of serialization contexts to notify whether an override flag should be appened when serializing the key of the related ItemId. |
|
Methods | ||
CanVisit(Type) | ||
ConvertFrom(ref ObjectContext, Scalar) | ||
ConvertTo(ref ObjectContext) |
Fields
OverrideKeyInfoKey
A key used in properties of serialization contexts to notify whether an override flag should be appened when serializing the key of the related ItemId.
public static PropertyKey<string> OverrideKeyInfoKey
Field Value
Type | Description |
---|---|
PropertyKey<System.String> |
Methods
CanVisit(Type)
public override bool CanVisit(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Stride.Core.Yaml.AssetScalarSerializerBase.CanVisit(System.Type)
ConvertFrom(ref ObjectContext, Scalar)
public override object ConvertFrom(ref ObjectContext objectContext, Scalar fromScalar)
Parameters
Type | Name | Description |
---|---|---|
Stride.Core.Yaml.Serialization.ObjectContext | objectContext | |
Stride.Core.Yaml.Events.Scalar | fromScalar |
Returns
Type | Description |
---|---|
System.Object |
Overrides
Stride.Core.Yaml.Serialization.Serializers.ScalarSerializerBase.ConvertFrom(Stride.Core.Yaml.Serialization.ObjectContext, Stride.Core.Yaml.Events.Scalar)
ConvertTo(ref ObjectContext)
public override string ConvertTo(ref ObjectContext objectContext)
Parameters
Type | Name | Description |
---|---|---|
Stride.Core.Yaml.Serialization.ObjectContext | objectContext |
Returns
Type | Description |
---|---|
System.String |
Overrides
Inherited Members
Stride.Core.Yaml.AssetScalarSerializerBase.TryCreate(Stride.Core.Yaml.Serialization.SerializerContext, Stride.Core.Reflection.ITypeDescriptor)
Stride.Core.Yaml.AssetScalarSerializerBase.Visit(Stride.Core.Reflection.VisitorContext)
Stride.Core.Yaml.Serialization.Serializers.ScalarSerializerBase.ReadYaml(Stride.Core.Yaml.Serialization.ObjectContext)
Stride.Core.Yaml.Serialization.Serializers.ScalarSerializerBase.WriteYaml(Stride.Core.Yaml.Serialization.ObjectContext)
Stride.Core.Yaml.Serialization.Serializers.ScalarSerializerBase.WriteScalar(Stride.Core.Yaml.Serialization.ObjectContext, Stride.Core.Yaml.Serialization.ScalarEventInfo)