Files
tbd-station-14/Content.Server/Light/Components/ExpendableLightComponent.cs
deltanedas 91cfabd6f6 light refactoring/rework (#19314)
Co-authored-by: deltanedas <@deltanedas:kde.org>
2023-09-03 22:31:10 -07:00

20 lines
679 B
C#

using Content.Shared.Light.Components;
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 partial 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;
}
}