45 lines
1.2 KiB
C#
45 lines
1.2 KiB
C#
using Content.Shared.Chemistry.Reagent;
|
|
using Content.Shared.Tools.Systems;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Tools.Components;
|
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true), Access(typeof(SharedToolSystem))]
|
|
public sealed partial class SolutionRefuelComponent : Component
|
|
{
|
|
[DataField, AutoNetworkedField]
|
|
public bool Enabled;
|
|
|
|
[DataField]
|
|
public float WelderTimer;
|
|
|
|
/// <summary>
|
|
/// Name of <see cref="FuelSolution"/>.
|
|
/// </summary>
|
|
[DataField]
|
|
public string FuelSolutionName = "Welder";
|
|
|
|
/// <summary>
|
|
/// Reagent that will be used as fuel for welding.
|
|
/// </summary>
|
|
[DataField]
|
|
public ProtoId<ReagentPrototype> FuelReagent = "WeldingFuel";
|
|
|
|
/// <summary>
|
|
/// Sound played when refilling the welder.
|
|
/// </summary>
|
|
[DataField]
|
|
public SoundSpecifier WelderRefill = new SoundPathSpecifier("/Audio/Effects/refill.ogg");
|
|
|
|
/// <summary>
|
|
/// Whether the item is safe to refill while lit without exploding the tank.
|
|
/// </summary>
|
|
[DataField]
|
|
public bool TankSafe;
|
|
|
|
[DataField]
|
|
public float WelderUpdateTimer = 1f;
|
|
}
|