21 lines
572 B
C#
21 lines
572 B
C#
|
|
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;
|
||
|
|
}
|