| 1234567891011121314151617181920212223242526272829303132333435363738 |
- using Content.Shared.FixedPoint;
- using Content.Shared.Roles;
- using Content.Shared.Storage;
- using Robust.Shared.Network;
- using Robust.Shared.Prototypes;
- using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
- namespace Content.Server.GameTicking.Rules.Components;
- /// <summary>
- /// Gamerule that sets a random weather effect for this map.
- /// </summary>
- [RegisterComponent, Access(typeof(RandomWeatherRuleSystem))]
- public sealed partial class RandomWeatherRuleComponent : Component
- {
- [DataField("allowedWeathers")]
- public List<string> AllowedWeathers = ["Clear"];
- [DataField("currentWeather")]
- public string CurrentWeather = "Clear";
- /// <summary>
- /// List of pre-set colors, mostly for tdm maps so we can set fixed times of day.
- /// </summary>
- [DataField("weatherInitialised")]
- public bool WeatherInitialised = false;
- /// <summary>
- /// List of pre-set colors, mostly for tdm maps so we can set fixed times of day.
- /// </summary>
- [DataField("dayTimes")]
- public List<string> DayTimes = [
- "Day", //Daylight #D8B059
- "Dawn", //Dawn/Dusk #cf7330
- "Night", //Moonlight #2b3143
- ];
- }
|