using Content.Server.Botany.Systems; using Content.Shared.Botany.Components; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; namespace Content.Server.Botany.Components { [RegisterComponent, Access(typeof(BotanySystem))] public sealed partial class SeedComponent : SharedSeedComponent { /// /// Seed data containing information about the plant type & properties that this seed can grow seed. If /// null, will instead attempt to get data from a seed prototype, if one is defined. See . /// [DataField("seed")] public SeedData? Seed; /// /// If not null, overrides the plant's initial health. Otherwise, the plant's initial health is set to the Endurance value. /// [DataField] public float? HealthOverride = null; /// /// Name of a base seed prototype that is used if is null. /// [DataField("seedId", customTypeSerializer: typeof(PrototypeIdSerializer))] public string? SeedId; } }