Files
tbd-station-14/Content.Shared/Tools/Components/WeldableComponent.cs
Nemanja a47c5561a9 add fuel costs back to finishing welding (#27030)
* add fuel costs back to welding

* ack

* meh

* eek!
2024-04-19 19:20:30 -04:00

52 lines
1.2 KiB
C#

using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
namespace Content.Shared.Tools.Components;
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class WeldableComponent : Component
{
/// <summary>
/// Tool quality for welding.
/// </summary>
[DataField]
public ProtoId<ToolQualityPrototype> WeldingQuality = "Welding";
/// <summary>
/// How much time does it take to weld/unweld entity.
/// </summary>
[DataField, AutoNetworkedField]
public TimeSpan Time = TimeSpan.FromSeconds(1f);
/// <summary>
/// How much fuel does it take to weld/unweld entity.
/// </summary>
[DataField]
public float Fuel = 3f;
/// <summary>
/// Shown when welded entity is examined.
/// </summary>
[DataField]
public LocId? WeldedExamineMessage = "weldable-component-examine-is-welded";
/// <summary>
/// Is this entity currently welded shut?
/// </summary>
[DataField, AutoNetworkedField]
public bool IsWelded;
}
[Serializable, NetSerializable]
public enum WeldableVisuals : byte
{
IsWelded
}
[Serializable, NetSerializable]
public enum WeldableLayers : byte
{
BaseWelded
}