34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
using Content.Shared.Decals;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.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, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class UnpoweredFlashlightComponent : Component
|
|
{
|
|
[DataField("toggleFlashlightSound")]
|
|
public SoundSpecifier ToggleSound = new SoundPathSpecifier("/Audio/Items/flashlight_pda.ogg");
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public bool LightOn;
|
|
|
|
[DataField]
|
|
public EntProtoId ToggleAction = "ActionToggleLight";
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public EntityUid? ToggleActionEntity;
|
|
|
|
/// <summary>
|
|
/// <see cref="ColorPalettePrototype"/> ID that determines the list
|
|
/// of colors to select from when we get emagged
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public ProtoId<ColorPalettePrototype> EmaggedColorsPrototype = "Emagged";
|
|
}
|