Cloud shadows (#298)

* not worked

* fix

* Update CP14CloudShadowsComponent.cs

* more params in component
This commit is contained in:
Ed
2024-07-03 17:33:38 +03:00
committed by GitHub
parent d54d27cda4
commit 7477b7c869
7 changed files with 128 additions and 2 deletions

View File

@@ -0,0 +1,26 @@
using System.Numerics;
using Robust.Shared.GameStates;
namespace Content.Shared._CP14.DayCycle;
/// <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 Vector2(0.5f, 0f);
[DataField]
public float MaxSpeed = 1.5f;
[DataField, AutoNetworkedField]
public float Alpha = 1f;
[DataField]
public float Scale = 2.5f;
[DataField]
public string ParallaxPath = "/Textures/_CP14/Parallaxes/Shadows.png";
}