CatStation/Content.Shared/Light/Components/RandomPointLightComponent.cs
ActiveMammmoth 5b96cfc16e
Artifact Lamp (#41186)
* lamp

* oops

* RGB

* random point light

* rare RGB effect

* documentation plus mapinit

* random hsv

* guard statement

* predicted random

* predicted random 2

* refactor: remove IsFirstTimePredicted guard from XAEApplyComponentsSystem

* refactor: modernize RandomPointLightSystem

* refactor: fix xml-doc for RandomPointLightComponent missing fact that PointLightComponent is required to work properly.

---------

Co-authored-by: pa.pecherskij <pa.pecherskij@interfax.ru>
Co-authored-by: Fildrance <fildrance@gmail.com>
2026-08-01 16:18:58 +00:00

35 lines
914 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Light.Components;
/// <summary>
/// Gives a point light random radius, energy and color when added to an entity with a <see cref="SharedPointLightComponent"/>.
/// Requires PointLightComponent to work properly.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class RandomPointLightComponent : Component
{
/// <summary>
/// Maximum value for the random radius
/// </summary>
[DataField]
public float MaxRadius = 6;
/// <summary>
/// Minimum value for the random radius
/// </summary>
[DataField]
public float MinRadius = 3;
/// <summary>
/// Maximum value for the random energy
/// </summary>
[DataField]
public float MaxEnergy = 5;
/// <summary>
/// Minimum value for the random energy
/// </summary>
[DataField]
public float MinEnergy = 1;
}