mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
41 lines
1 KiB
C#
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
|
|
}
|