18 lines
433 B
C#
18 lines
433 B
C#
|
|
namespace Content.Server._CP14.Farming.Components;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// allows the plant to receive energy passively, depending on daylight
|
||
|
|
/// </summary>
|
||
|
|
[RegisterComponent, Access(typeof(CP14FarmingSystem))]
|
||
|
|
public sealed partial class CP14PlantEnergyFromLightComponent : Component
|
||
|
|
{
|
||
|
|
[DataField]
|
||
|
|
public float Energy = 0f;
|
||
|
|
|
||
|
|
[DataField]
|
||
|
|
public bool Daytime = true;
|
||
|
|
|
||
|
|
[DataField]
|
||
|
|
public bool Nighttime = false;
|
||
|
|
}
|