Files
crystall-punk-14/Content.Shared/_CP14/DayCycle/Components/CP14CloudShadowsComponent.cs
2024-08-10 01:12:13 +03:00

28 lines
709 B
C#

using System.Numerics;
using Robust.Shared.GameStates;
using Robust.Shared.Utility;
namespace Content.Shared._CP14.DayCycle.Components;
/// <summary>
/// If added to the map, renders cloud shadows on the map
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class CP14CloudShadowsComponent : Component
{
[DataField, AutoNetworkedField]
public Vector2 CloudSpeed = new(0.5f, 0f);
[DataField]
public float MaxSpeed = 1.5f;
[DataField, AutoNetworkedField]
public float Alpha = 1f;
[DataField]
public float Scale = 2.5f;
[DataField]
public ResPath ParallaxPath = new("/Textures/_CP14/Parallaxes/Shadows.png");
}