2025-04-03 15:29:08 +03:00
|
|
|
namespace Content.Shared._CP14.Farming.Components;
|
2024-07-15 23:58:03 +03:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Is trying to use up the plant's energy and resources to grow.
|
|
|
|
|
/// </summary>
|
2025-04-03 15:29:08 +03:00
|
|
|
[RegisterComponent, Access(typeof(CP14SharedFarmingSystem))]
|
2024-07-15 23:58:03 +03:00
|
|
|
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;
|
|
|
|
|
}
|