Files
crystall-punk-14/Content.Shared/Weather/WeatherPrototype.cs
Ed 4cd9e41469 Mist + Lampposts (#472)
* lamppost

* mist weather

* maps update

* Update weather.yml

* Update meta.json
2024-09-29 13:07:30 +03:00

37 lines
904 B
C#

using System.Numerics;
using Robust.Shared.Audio;
using Robust.Shared.Prototypes;
using Robust.Shared.Utility;
namespace Content.Shared.Weather;
[Prototype("weather")]
public sealed partial class WeatherPrototype : IPrototype
{
[IdDataField] public string ID { get; } = 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;
}