Weather backend start (#407)

* DayCycke StartWithRandomEntry

* add weather rule

* fix

* yep, its work

* finalize weather

* fix again

* weather resprite
This commit is contained in:
Ed
2024-09-01 17:22:16 +05:00
committed by GitHub
parent 37a4068334
commit 3b0af98a2e
15 changed files with 216 additions and 4 deletions

View File

@@ -0,0 +1,23 @@
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))]
public sealed partial class CP14WeatherControllerComponent : Component
{
/// <summary>
/// random time with no weather.
/// </summary>
[DataField]
public MinMax ClearDuration = new(60,600);
[DataField]
public HashSet<CP14WeatherData> Entries = new();
[DataField, AutoPausedField]
public TimeSpan NextWeatherTime = TimeSpan.Zero;
}