type serializer for computer boards (#6915)

This commit is contained in:
metalgearsloth
2022-02-28 00:25:56 +11:00
committed by GitHub
parent 0f1aac396a
commit 47dca34780

View File

@@ -1,14 +1,16 @@
using Robust.Shared.GameObjects; using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.Manager.Attributes; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Robust.Shared.ViewVariables;
namespace Content.Server.Construction.Components namespace Content.Server.Construction.Components
{ {
/// <summary>
/// Used for construction graphs in building computers.
/// </summary>
[RegisterComponent] [RegisterComponent]
public sealed class ComputerBoardComponent : Component public sealed class ComputerBoardComponent : Component
{ {
[ViewVariables] [ViewVariables]
[DataField("prototype")] [DataField("prototype", customTypeSerializer:typeof(PrototypeIdSerializer<EntityPrototype>))]
public string? Prototype { get; private set; } public string? Prototype { get; private set; }
} }
} }