| 1234567891011121314151617181920212223242526272829 |
- using Content.Server.Light.EntitySystems;
- using Content.Shared.Smoking;
- using Robust.Shared.Audio;
- namespace Content.Server.Light.Components
- {
- [RegisterComponent]
- [Access(typeof(MatchstickSystem))]
- 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")]
- public SmokableState CurrentState = SmokableState.Unlit;
- /// <summary>
- /// How long will matchstick last in seconds.
- /// </summary>
- [ViewVariables(VVAccess.ReadOnly)]
- [DataField("duration")]
- public int Duration = 10;
- /// <summary>
- /// Sound played when you ignite the matchstick.
- /// </summary>
- [DataField("igniteSound", required: true)] public SoundSpecifier IgniteSound = default!;
- }
- }
|