Files
OldThink/Content.Server/Light/Components/ExpendableLightComponent.cs

20 lines
679 B
C#
Raw Normal View History

using Content.Shared.Light.Components;
2021-06-09 22:19:39 +02:00
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]
2022-02-10 13:01:43 +11:00
public bool Activated => CurrentState is ExpendableLightState.Lit or ExpendableLightState.Fading;
2022-02-10 13:01:43 +11:00
[ViewVariables] public float StateExpiryTime = default;
}
}