Update serialization markdown usages (#3931)

* Update serialization markdown usages

* test submodule update

* Revert "test submodule update"

This reverts commit c240ca312a44365fa1aa0a7df4915434dff10bfc.
This commit is contained in:
DrSmugleaf
2021-05-04 13:30:38 +02:00
committed by GitHub
parent 56dfd880b2
commit 055279f86c
4 changed files with 11 additions and 10 deletions

View File

@@ -10,6 +10,7 @@ using Robust.Shared.Serialization;
using Robust.Shared.Serialization.Manager; using Robust.Shared.Serialization.Manager;
using Robust.Shared.Serialization.Manager.Attributes; using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.Serialization.Markdown; using Robust.Shared.Serialization.Markdown;
using Robust.Shared.Serialization.Markdown.Mapping;
using Robust.Shared.Utility; using Robust.Shared.Utility;
#nullable enable #nullable enable

View File

@@ -4,7 +4,7 @@ using Robust.Shared.IoC;
using Robust.Shared.Serialization.Manager; using Robust.Shared.Serialization.Manager;
using Robust.Shared.Serialization.Manager.Attributes; using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.Serialization.Manager.Result; using Robust.Shared.Serialization.Manager.Result;
using Robust.Shared.Serialization.Markdown; using Robust.Shared.Serialization.Markdown.Mapping;
using Robust.Shared.Serialization.Markdown.Validation; using Robust.Shared.Serialization.Markdown.Validation;
using Robust.Shared.Serialization.TypeSerializers.Interfaces; using Robust.Shared.Serialization.TypeSerializers.Interfaces;
@@ -15,31 +15,31 @@ namespace Content.Shared.Construction
{ {
private Type? GetType(MappingDataNode node) private Type? GetType(MappingDataNode node)
{ {
if (node.HasNode("material")) if (node.Has("material"))
{ {
return typeof(MaterialConstructionGraphStep); return typeof(MaterialConstructionGraphStep);
} }
else if (node.HasNode("tool")) else if (node.Has("tool"))
{ {
return typeof(ToolConstructionGraphStep); return typeof(ToolConstructionGraphStep);
} }
else if (node.HasNode("prototype")) else if (node.Has("prototype"))
{ {
return typeof(PrototypeConstructionGraphStep); return typeof(PrototypeConstructionGraphStep);
} }
else if (node.HasNode("component")) else if (node.Has("component"))
{ {
return typeof(ComponentConstructionGraphStep); return typeof(ComponentConstructionGraphStep);
} }
else if (node.HasNode("tag")) else if (node.Has("tag"))
{ {
return typeof(TagConstructionGraphStep); return typeof(TagConstructionGraphStep);
} }
else if (node.HasNode("allTags") || node.HasNode("anyTags")) else if (node.Has("allTags") || node.Has("anyTags"))
{ {
return typeof(MultipleTagsConstructionGraphStep); return typeof(MultipleTagsConstructionGraphStep);
} }
else if (node.HasNode("steps")) else if (node.Has("steps"))
{ {
return typeof(NestedConstructionGraphStep); return typeof(NestedConstructionGraphStep);
} }

View File

@@ -4,7 +4,7 @@ using Content.Shared.Alert;
using NUnit.Framework; using NUnit.Framework;
using Robust.Shared.IoC; using Robust.Shared.IoC;
using Robust.Shared.Serialization.Manager; using Robust.Shared.Serialization.Manager;
using Robust.Shared.Serialization.Markdown; using Robust.Shared.Serialization.Markdown.Mapping;
using Robust.Shared.Utility; using Robust.Shared.Utility;
using YamlDotNet.RepresentationModel; using YamlDotNet.RepresentationModel;

View File

@@ -4,7 +4,7 @@ using NUnit.Framework;
using Robust.Shared.IoC; using Robust.Shared.IoC;
using Robust.Shared.Maths; using Robust.Shared.Maths;
using Robust.Shared.Serialization.Manager; using Robust.Shared.Serialization.Manager;
using Robust.Shared.Serialization.Markdown; using Robust.Shared.Serialization.Markdown.Mapping;
using Robust.Shared.Utility; using Robust.Shared.Utility;
using YamlDotNet.RepresentationModel; using YamlDotNet.RepresentationModel;