Files
space-station-14/Content.Server/Botany/Components/ProduceComponent.cs
2025-12-13 15:00:17 +02:00

32 lines
927 B
C#

using Content.Server.Botany.Systems;
using Content.Shared.Botany.Components;
using Robust.Shared.Prototypes;
namespace Content.Server.Botany.Components;
/// <summary>
/// Produce-related data for plant and plant growth cycle.
/// </summary>
[RegisterComponent]
[Access(typeof(BotanySystem))]
public sealed partial class ProduceComponent : SharedProduceComponent
{
/// <summary>
/// Name of the solution container that holds the produce's contents.
/// </summary>
[DataField("targetSolution")]
public string SolutionName { get; set; } = "food";
/// <summary>
/// Seed data used to create a <see cref="SeedComponent"/> when this produce has its seeds extracted.
/// </summary>
[DataField]
public SeedData? Seed;
/// <summary>
/// Prototype ID for the seed that can be extracted from this produce.
/// </summary>
[DataField]
public ProtoId<SeedPrototype>? SeedId;
}