2022-02-06 13:14:41 -07:00
|
|
|
using Content.Server.Botany.Systems;
|
2024-02-01 13:33:57 +00:00
|
|
|
using Content.Shared.Botany.Components;
|
2022-04-16 17:32:35 +12:00
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
2020-10-26 23:19:46 +01:00
|
|
|
|
2022-02-06 13:14:41 -07:00
|
|
|
namespace Content.Server.Botany.Components;
|
2021-03-05 01:08:38 +01:00
|
|
|
|
2022-02-06 13:14:41 -07:00
|
|
|
[RegisterComponent]
|
2022-06-07 15:26:28 +02:00
|
|
|
[Access(typeof(BotanySystem))]
|
2024-02-01 13:33:57 +00:00
|
|
|
public sealed partial class ProduceComponent : SharedProduceComponent
|
2022-02-06 13:14:41 -07:00
|
|
|
{
|
|
|
|
|
[DataField("targetSolution")] public string SolutionName { get; set; } = "food";
|
2020-10-26 23:19:46 +01:00
|
|
|
|
2022-04-16 17:32:35 +12:00
|
|
|
/// <summary>
|
|
|
|
|
/// Seed data used to create a <see cref="SeedComponent"/> when this produce has its seeds extracted.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("seed")]
|
|
|
|
|
public SeedData? Seed;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Seed data used to create a <see cref="SeedComponent"/> when this produce has its seeds extracted.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("seedId", customTypeSerializer: typeof(PrototypeIdSerializer<SeedPrototype>))]
|
2023-08-22 18:14:33 -07:00
|
|
|
public string? SeedId;
|
2020-10-26 23:19:46 +01:00
|
|
|
}
|