Files
tbd-station-14/Content.Server/Light/Components/ExpendableLightComponent.cs
2022-05-13 17:59:03 +10:00

20 lines
670 B
C#

using Content.Shared.Light.Component;
namespace Content.Server.Light.Components
{
/// <summary>
/// Component that represents a handheld expendable light which can be activated and eventually dies over time.
/// </summary>
[RegisterComponent]
public sealed class ExpendableLightComponent : SharedExpendableLightComponent
{
/// <summary>
/// Status of light, whether or not it is emitting light.
/// </summary>
[ViewVariables]
public bool Activated => CurrentState is ExpendableLightState.Lit or ExpendableLightState.Fading;
[ViewVariables] public float StateExpiryTime = default;
}
}