Delta-v/Content.Shared/Smoking/Components/MatchstickComponent.cs

32 lines
918 B
C#

// Shitmed Change Start
using Content.Shared.Smoking.Systems;
using Robust.Shared.Audio;
using Robust.Shared.GameStates;
namespace Content.Shared.Smoking.Components;
[RegisterComponent, NetworkedComponent, Access(typeof(SharedMatchstickSystem))]
[AutoGenerateComponentState]
public sealed partial class MatchstickComponent : Component
{
/// <summary>
/// Current state to matchstick. Can be <code>Unlit</code>, <code>Lit</code> or <code>Burnt</code>.
/// </summary>
[DataField("state"), AutoNetworkedField]
public SmokableState CurrentState = SmokableState.Unlit;
/// <summary>
/// How long will matchstick last in seconds.
/// </summary>
[DataField]
public int Duration = 10;
/// <summary>
/// Sound played when you ignite the matchstick.
/// </summary>
[DataField(required: true)]
public SoundSpecifier IgniteSound = default!;
}
// Shitmed Change End