2023-09-04 06:31:10 +01:00
|
|
|
using Content.Shared.Light.Components;
|
2020-09-03 16:02:40 -04:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Light.Components
|
2020-09-03 16:02:40 -04:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Component that represents a handheld expendable light which can be activated and eventually dies over time.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class ExpendableLightComponent : SharedExpendableLightComponent
|
2020-09-03 16:02:40 -04:00
|
|
|
{
|
|
|
|
|
/// <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;
|
2020-09-03 16:02:40 -04:00
|
|
|
|
2022-02-10 13:01:43 +11:00
|
|
|
[ViewVariables] public float StateExpiryTime = default;
|
2020-09-03 16:02:40 -04:00
|
|
|
}
|
|
|
|
|
}
|