Files
crystall-punk-14/Content.Server/_CP14/WeatherControl/CP14WeatherControllerComponent.cs
Ed b66ee390a6 Dynamic demiplane weather + farming hotfix (#1131)
* dynamic demiplane weather

* add skeleton sprite

* hotfix farming

* Update wheat.yml
2025-04-04 10:35:48 +03:00

22 lines
731 B
C#

using Content.Server._CP14.GameTicking.Rules;
using Content.Shared._CP14.WeatherControl;
using Content.Shared.Destructible.Thresholds;
namespace Content.Server._CP14.WeatherControl;
/// <summary>
/// is the controller that hangs on the prototype map. It regulates which weather rules are run and where they are run.
/// </summary>
[RegisterComponent, AutoGenerateComponentPause, Access(typeof(CP14WeatherControllerSystem), typeof(CP14WeatherRule))]
public sealed partial class CP14WeatherControllerComponent : Component
{
[DataField]
public bool Enabled = true;
[DataField]
public HashSet<CP14WeatherData> Entries = new();
[DataField, AutoPausedField]
public TimeSpan NextWeatherTime = TimeSpan.Zero;
}