wip: Serialization 4
This commit is contained in:
parent
4c04e3d02f
commit
4faac1b5ca
|
@ -7,26 +7,26 @@ public class YamlSerializer : ISerializer
|
||||||
{
|
{
|
||||||
private readonly YamlDotNet.Serialization.ISerializer serializer = new SerializerBuilder()
|
private readonly YamlDotNet.Serialization.ISerializer serializer = new SerializerBuilder()
|
||||||
.WithNamingConvention(CamelCaseNamingConvention.Instance)
|
.WithNamingConvention(CamelCaseNamingConvention.Instance)
|
||||||
// .WithTypeConverter(new BehaviourYamlConverter())
|
.WithTypeConverter(new BehaviourYamlConverter())
|
||||||
// .WithTypeConverter(new BehaviourControllerYamlConverter())
|
.WithTypeConverter(new BehaviourControllerYamlConverter())
|
||||||
// .WithTypeConverter(new BehaviourDTOListConverter())
|
.WithTypeConverter(new BehaviourDTOListConverter())
|
||||||
// .WithTypeConverter(new GameManagerYamlConverter())
|
.WithTypeConverter(new GameManagerYamlConverter())
|
||||||
// .WithTypeConverter(new GameObjectYamlConverter())
|
.WithTypeConverter(new GameObjectYamlConverter())
|
||||||
// .WithTypeConverter(new GameObjectDTOListConverter())
|
.WithTypeConverter(new GameObjectDTOListConverter())
|
||||||
// .WithTypeConverter(new StateEnableYamlConverter())
|
.WithTypeConverter(new StateEnableYamlConverter())
|
||||||
// .WithTypeConverter(new TransformYamlConverter())
|
.WithTypeConverter(new TransformYamlConverter())
|
||||||
.WithTypeConverter(new Vector2DYamlConverter())
|
.WithTypeConverter(new Vector2DYamlConverter())
|
||||||
.Build();
|
.Build();
|
||||||
private readonly YamlDotNet.Serialization.IDeserializer deserializer = new DeserializerBuilder()
|
private readonly YamlDotNet.Serialization.IDeserializer deserializer = new DeserializerBuilder()
|
||||||
.WithNamingConvention(UnderscoredNamingConvention.Instance)
|
.WithNamingConvention(UnderscoredNamingConvention.Instance)
|
||||||
// .WithTypeConverter(new BehaviourYamlConverter())
|
.WithTypeConverter(new BehaviourYamlConverter())
|
||||||
// .WithTypeConverter(new BehaviourControllerYamlConverter())
|
.WithTypeConverter(new BehaviourControllerYamlConverter())
|
||||||
// .WithTypeConverter(new BehaviourDTOListConverter())
|
.WithTypeConverter(new BehaviourDTOListConverter())
|
||||||
// .WithTypeConverter(new GameManagerYamlConverter())
|
.WithTypeConverter(new GameManagerYamlConverter())
|
||||||
// .WithTypeConverter(new GameObjectYamlConverter())
|
.WithTypeConverter(new GameObjectYamlConverter())
|
||||||
// .WithTypeConverter(new GameObjectDTOListConverter())
|
.WithTypeConverter(new GameObjectDTOListConverter())
|
||||||
// .WithTypeConverter(new StateEnableYamlConverter())
|
.WithTypeConverter(new StateEnableYamlConverter())
|
||||||
// .WithTypeConverter(new TransformYamlConverter())
|
.WithTypeConverter(new TransformYamlConverter())
|
||||||
.WithTypeConverter(new Vector2DYamlConverter())
|
.WithTypeConverter(new Vector2DYamlConverter())
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue