Fix matchstick prediction issues (#31418)
* First commit * Minor fixes please ymal error begone * If this fixes it * Last chance * How * Forgot * First fixes * Added correct component tags * Minor cleanup * Address review! * Namespace change * Fix yaml yelling * Changes * Update namespace * Removed the unneeded files
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using Content.Shared.Smoking;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
||||
|
||||
namespace Content.Shared.IgnitionSource.Components;
|
||||
|
||||
[NetworkedComponent, RegisterComponent, AutoGenerateComponentState, AutoGenerateComponentPause]
|
||||
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, AutoNetworkedField]
|
||||
public SmokableState State = SmokableState.Unlit;
|
||||
|
||||
/// <summary>
|
||||
/// How long the matchstick will burn for.
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public TimeSpan Duration = TimeSpan.FromSeconds(10);
|
||||
|
||||
/// <summary>
|
||||
/// The time that the match will burn out. If null, that means the match is unlit.
|
||||
/// </summary>
|
||||
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer)), AutoNetworkedField, AutoPausedField]
|
||||
public TimeSpan? TimeMatchWillBurnOut;
|
||||
|
||||
/// <summary>
|
||||
/// Sound played when you ignite the matchstick.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public SoundSpecifier? IgniteSound;
|
||||
}
|
||||
Reference in New Issue
Block a user