2021-08-18 23:17:47 +02:00
|
|
|
using Content.Server.Light.EntitySystems;
|
2022-11-16 20:22:11 +01:00
|
|
|
using Content.Shared.Smoking;
|
2022-07-29 14:13:12 +12:00
|
|
|
using Robust.Shared.Audio;
|
2021-01-11 00:17:28 +01:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Light.Components
|
2021-01-11 00:17:28 +01:00
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2022-06-07 15:26:28 +02:00
|
|
|
[Access(typeof(MatchstickSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class MatchstickComponent : Component
|
2021-01-11 00:17:28 +01:00
|
|
|
{
|
2021-08-18 23:17:47 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// Current state to matchstick. Can be <code>Unlit</code>, <code>Lit</code> or <code>Burnt</code>.
|
|
|
|
|
/// </summary>
|
2022-11-03 21:38:56 -04:00
|
|
|
[DataField("state")]
|
2021-09-26 15:19:00 +02:00
|
|
|
public SmokableState CurrentState = SmokableState.Unlit;
|
2021-01-11 00:17:28 +01:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// How long will matchstick last in seconds.
|
|
|
|
|
/// </summary>
|
2021-07-31 19:52:33 +02:00
|
|
|
[ViewVariables(VVAccess.ReadOnly)]
|
|
|
|
|
[DataField("duration")]
|
2021-08-18 23:17:47 +02:00
|
|
|
public int Duration = 10;
|
2021-01-11 00:17:28 +01:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Sound played when you ignite the matchstick.
|
|
|
|
|
/// </summary>
|
2021-08-18 23:17:47 +02:00
|
|
|
[DataField("igniteSound", required: true)] public SoundSpecifier IgniteSound = default!;
|
2021-01-11 00:17:28 +01:00
|
|
|
}
|
2021-02-04 17:44:49 +01:00
|
|
|
}
|