mirror of
https://github.com/space-wizards/space-station-14.git
synced 2026-02-15 03:31:30 +01:00
32 lines
927 B
C#
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;
|
|
}
|