From 47dca347809707322c62434caccaf6ca51bf563b Mon Sep 17 00:00:00 2001
From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Date: Mon, 28 Feb 2022 00:25:56 +1100
Subject: [PATCH] type serializer for computer boards (#6915)
---
.../Construction/Components/ComputerBoardComponent.cs | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/Content.Server/Construction/Components/ComputerBoardComponent.cs b/Content.Server/Construction/Components/ComputerBoardComponent.cs
index 636d91a6df..4937764fcc 100644
--- a/Content.Server/Construction/Components/ComputerBoardComponent.cs
+++ b/Content.Server/Construction/Components/ComputerBoardComponent.cs
@@ -1,14 +1,16 @@
-using Robust.Shared.GameObjects;
-using Robust.Shared.Serialization.Manager.Attributes;
-using Robust.Shared.ViewVariables;
+using Robust.Shared.Prototypes;
+using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Construction.Components
{
+ ///
+ /// Used for construction graphs in building computers.
+ ///
[RegisterComponent]
public sealed class ComputerBoardComponent : Component
{
[ViewVariables]
- [DataField("prototype")]
+ [DataField("prototype", customTypeSerializer:typeof(PrototypeIdSerializer))]
public string? Prototype { get; private set; }
}
}