23 lines
747 B
C#
23 lines
747 B
C#
|
|
using Content.Shared.Sound;
|
||
|
|
using Robust.Shared.GameObjects;
|
||
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
||
|
|
using Robust.Shared.ViewVariables;
|
||
|
|
|
||
|
|
namespace Content.Server.Light.Components
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// This is simplified version of <see cref="HandheldLightComponent"/>.
|
||
|
|
/// It doesn't consume any power and can be toggle only by verb.
|
||
|
|
/// </summary>
|
||
|
|
[RegisterComponent]
|
||
|
|
public class UnpoweredFlashlightComponent : Component
|
||
|
|
{
|
||
|
|
public override string Name => "UnpoweredFlashlight";
|
||
|
|
|
||
|
|
[DataField("toggleFlashlightSound")]
|
||
|
|
public SoundSpecifier ToggleSound = new SoundPathSpecifier("/Audio/Items/flashlight_pda.ogg");
|
||
|
|
|
||
|
|
[ViewVariables] public bool LightOn = false;
|
||
|
|
}
|
||
|
|
}
|