From 2064877b110d59ecdc6df2793b388f1b06f4765b Mon Sep 17 00:00:00 2001 From: sleepyyapril Date: Sun, 5 Jan 2025 15:52:02 -0400 Subject: [PATCH] use inherit --- .../Research/Prototypes/LatheRecipePrototype.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Content.Shared/Research/Prototypes/LatheRecipePrototype.cs b/Content.Shared/Research/Prototypes/LatheRecipePrototype.cs index 10a0c7209d..fbdd8b195d 100644 --- a/Content.Shared/Research/Prototypes/LatheRecipePrototype.cs +++ b/Content.Shared/Research/Prototypes/LatheRecipePrototype.cs @@ -4,17 +4,27 @@ using Content.Shared.Materials; using Robust.Shared.Prototypes; using Robust.Shared.Serialization; +using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Array; using Robust.Shared.Utility; namespace Content.Shared.Research.Prototypes { [NetSerializable, Serializable, Prototype] - public sealed partial class LatheRecipePrototype : IPrototype + public sealed partial class LatheRecipePrototype : IPrototype, IInheritingPrototype { [ViewVariables] [IdDataField] public string ID { get; private set; } = default!; + /// + [ParentDataField(typeof(AbstractPrototypeIdArraySerializer))] + public string[]? Parents { get; } + + /// + [NeverPushInheritance] + [AbstractDataField] + public bool Abstract { get; } + /// /// Name displayed in the lathe GUI. /// @@ -68,4 +78,4 @@ public sealed partial class LatheRecipePrototype : IPrototype [DataField] public uint MiningPoints; } -} +} \ No newline at end of file