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-02-06 13:14:41 -07:00
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
2020-10-26 23:19:46 +01:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Botany.Components
|
2020-10-26 23:19:46 +01:00
|
|
|
{
|
2022-06-07 15:26:28 +02:00
|
|
|
[RegisterComponent, Access(typeof(BotanySystem))]
|
2024-02-01 13:33:57 +00:00
|
|
|
public sealed partial class SeedComponent : SharedSeedComponent
|
2020-10-26 23:19:46 +01:00
|
|
|
{
|
2022-04-16 17:32:35 +12:00
|
|
|
/// <summary>
|
|
|
|
|
/// 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 <see
|
|
|
|
|
/// cref="SeedId"/>.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("seed")]
|
|
|
|
|
public SeedData? Seed;
|
|
|
|
|
|
2024-02-17 06:02:12 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// If not null, overrides the plant's initial health. Otherwise, the plant's initial health is set to the Endurance value.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public float? HealthOverride = null;
|
|
|
|
|
|
2022-04-16 17:32:35 +12:00
|
|
|
/// <summary>
|
|
|
|
|
/// Name of a base seed prototype that is used if <see cref="Seed"/> is null.
|
|
|
|
|
/// </summary>
|
2024-07-17 20:25:19 +02:00
|
|
|
[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
|
|
|
}
|
|
|
|
|
}
|