Files
crystall-punk-14/Content.Server/_CP14/Farming/Components/CP14PlantGrowingComponent.cs

21 lines
572 B
C#
Raw Permalink Normal View History

namespace Content.Server._CP14.Farming.Components;
/// <summary>
/// Is trying to use up the plant's energy and resources to grow.
/// </summary>
[RegisterComponent, Access(typeof(CP14FarmingSystem))]
public sealed partial class CP14PlantGrowingComponent : Component
{
[DataField]
public float EnergyCost = 0f;
[DataField]
public float ResourceCost = 0f;
/// <summary>
/// for each plant renewal. It is not every frame, it depends on the refresh rate in PlantComponent
/// </summary>
[DataField]
public float GrowthPerUpdate = 0f;
}