using Content.Shared.Smoking;
using Content.Shared.Sound;
using Content.Server.Light.EntitySystems;
namespace Content.Server.Light.Components
{
[RegisterComponent]
[Access(typeof(MatchstickSystem))]
public sealed class MatchstickComponent : Component
{
///
/// Current state to matchstick. Can be Unlit, Lit or Burnt.
///
[ViewVariables]
public SmokableState CurrentState = SmokableState.Unlit;
///
/// How long will matchstick last in seconds.
///
[ViewVariables(VVAccess.ReadOnly)]
[DataField("duration")]
public int Duration = 10;
///
/// Sound played when you ignite the matchstick.
///
[DataField("igniteSound", required: true)] public SoundSpecifier IgniteSound = default!;
}
}