Files
crystall-punk-14/Content.Shared/Weather/WeatherPrototype.cs
Ed 26d81b684b Weather refill (#1175)
* refillable by weather

* fix
2025-04-13 01:01:22 +03:00

44 lines
1.1 KiB
C#

using System.Numerics;
using Content.Shared._CP14.WeatherEffect.Effects;
using Robust.Shared.Audio;
using Robust.Shared.Prototypes;
using Robust.Shared.Utility;
namespace Content.Shared.Weather;
[Prototype]
public sealed partial class WeatherPrototype : IPrototype
{
[IdDataField] public string ID { get; private set; } = default!;
[ViewVariables(VVAccess.ReadWrite), DataField("sprite", required: true)]
public SpriteSpecifier Sprite = default!;
[ViewVariables(VVAccess.ReadWrite), DataField("color")]
public Color? Color;
/// <summary>
/// Sound to play on the affected areas.
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField("sound")]
public SoundSpecifier? Sound;
/// <summary>
/// CP14 offset speed
/// </summary>
[DataField]
public Vector2 OffsetSpeed = Vector2.Zero;
/// <summary>
/// CP14 alpha
/// </summary>
[DataField]
public float Alpha = 1f;
/// <summary>
/// CP14 Effects
/// </summary>
[DataField]
public List<CP14WeatherEffectConfig> Config = new();
}