| 12345678910111213141516171819202122232425262728293031 |
- using Content.Shared.Research.Prototypes;
- using Robust.Shared.Prototypes;
- using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Array;
- namespace Content.Shared.Lathe.Prototypes;
- /// <summary>
- /// A pack of lathe recipes that one or more lathes can use.
- /// Packs will inherit the parents recipes when using inheritance, so you don't need to copy paste them.
- /// </summary>
- [Prototype]
- public sealed partial class LatheRecipePackPrototype : IPrototype, IInheritingPrototype
- {
- [ViewVariables]
- [IdDataField]
- public string ID { get; private set; } = default!;
- [ParentDataField(typeof(AbstractPrototypeIdArraySerializer<LatheRecipePackPrototype>))]
- public string[]? Parents { get; private set; }
- [NeverPushInheritance]
- [AbstractDataField]
- public bool Abstract { get; private set; }
- /// <summary>
- /// The lathe recipes contained by this pack.
- /// </summary>
- [DataField(required: true)]
- [AlwaysPushInheritance]
- public HashSet<ProtoId<LatheRecipePrototype>> Recipes = new();
- }
|