using Content.Shared.Actions.ActionTypes; using Robust.Shared.Audio; namespace Content.Server.Light.Components { /// /// This is simplified version of . /// It doesn't consume any power and can be toggle only by verb. /// [RegisterComponent] public sealed class UnpoweredFlashlightComponent : Component { [DataField("toggleFlashlightSound")] public SoundSpecifier ToggleSound = new SoundPathSpecifier("/Audio/Items/flashlight_pda.ogg"); [ViewVariables] public bool LightOn = false; [DataField("toggleAction", required: true)] public InstantAction ToggleAction = new(); } }