2024-09-29 13:07:30 +03:00
|
|
|
using System.Numerics;
|
2025-04-13 01:01:22 +03:00
|
|
|
using Content.Shared._CP14.WeatherEffect.Effects;
|
2023-01-17 20:26:52 +11:00
|
|
|
using Robust.Shared.Audio;
|
|
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
using Robust.Shared.Utility;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Weather;
|
|
|
|
|
|
2025-03-19 14:30:31 -04:00
|
|
|
[Prototype]
|
2023-11-01 19:56:23 -07:00
|
|
|
public sealed partial class WeatherPrototype : IPrototype
|
2023-01-17 20:26:52 +11:00
|
|
|
{
|
2025-02-23 23:21:59 -05:00
|
|
|
[IdDataField] public string ID { get; private set; } = default!;
|
2023-01-17 20:26:52 +11:00
|
|
|
|
|
|
|
|
[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;
|
2024-09-29 13:07:30 +03:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// CP14 offset speed
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public Vector2 OffsetSpeed = Vector2.Zero;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// CP14 alpha
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public float Alpha = 1f;
|
2025-03-30 17:27:05 +03:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// CP14 Effects
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
2025-03-31 23:46:21 +03:00
|
|
|
public List<CP14WeatherEffectConfig> Config = new();
|
2023-01-17 20:26:52 +11:00
|
|
|
}
|