Skip to content

Commit

Permalink
use inherit
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepyyapril committed Jan 5, 2025
1 parent e1cdc96 commit 2064877
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Content.Shared/Research/Prototypes/LatheRecipePrototype.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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!;

/// <inheritdoc/>
[ParentDataField(typeof(AbstractPrototypeIdArraySerializer<LatheRecipePrototype>))]
public string[]? Parents { get; }

/// <inheritdoc />
[NeverPushInheritance]
[AbstractDataField]
public bool Abstract { get; }

/// <summary>
/// Name displayed in the lathe GUI.
/// </summary>
Expand Down Expand Up @@ -68,4 +78,4 @@ public sealed partial class LatheRecipePrototype : IPrototype
[DataField]
public uint MiningPoints;
}
}
}

0 comments on commit 2064877

Please sign in to comment.