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