CatStation/Content.Shared/Botany/Components/PlantHarvestComponent.cs
Pok 044140e318
Fix Botany refactor (#45253)
* botany-fix

* Update plants.yml
2026-08-10 19:45:12 +00:00

41 lines
1 KiB
C#

using Content.Shared.Botany.Systems;
using Robust.Shared.GameStates;
using Robust.Shared.Serialization;
namespace Content.Shared.Botany.Components;
/// <summary>
/// Component for plant harvesting process.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(fieldDeltas: true)]
[Access(typeof(PlantHarvestSystem))]
public sealed partial class PlantHarvestComponent : Component
{
/// <summary>
/// Harvest repeat type.
/// </summary>
[DataField, AutoNetworkedField]
public HarvestType HarvestRepeat = HarvestType.NoRepeat;
}
/// <summary>
/// Harvest options for plants.
/// </summary>
[Serializable, NetSerializable]
public enum HarvestType
{
/// <summary>
/// Plant is removed on harvest.
/// </summary>
NoRepeat,
/// <summary>
/// Plant makes produce every Production ticks.
/// </summary>
Repeat,
/// <summary>
/// Repeat, plus produce is dropped on the ground near the plant automatically.
/// </summary>
SelfHarvest
}