mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* 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>
35 lines
914 B
C#
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;
|
|
}
|