From 0f910a7ab23f94c77ff7daf0924edd7835c688bf Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Fri, 21 Jan 2022 20:40:21 +1100 Subject: [PATCH] Construction graph serv3 (#6262) --- .../Construction/Components/ConstructionComponent.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Server/Construction/Components/ConstructionComponent.cs b/Content.Server/Construction/Components/ConstructionComponent.cs index 8b0d660502..7abfa9c145 100644 --- a/Content.Server/Construction/Components/ConstructionComponent.cs +++ b/Content.Server/Construction/Components/ConstructionComponent.cs @@ -1,7 +1,9 @@ using System.Collections.Generic; +using Content.Shared.Construction.Prototypes; using Robust.Shared.Analyzers; using Robust.Shared.GameObjects; using Robust.Shared.Serialization.Manager.Attributes; +using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; using Robust.Shared.ViewVariables; namespace Content.Server.Construction.Components @@ -11,7 +13,7 @@ namespace Content.Server.Construction.Components { public override string Name => "Construction"; - [DataField("graph", required:true)] + [DataField("graph", required:true, customTypeSerializer:typeof(PrototypeIdSerializer))] public string Graph { get; set; } = string.Empty; [DataField("node", required:true)]