2022-11-14 11:36:13 -08:00
|
|
|
using Robust.Shared.Audio;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Construction.Components;
|
|
|
|
|
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class PartExchangerComponent : Component
|
2022-11-14 11:36:13 -08:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// How long it takes to exchange the parts
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("exchangeDuration")]
|
|
|
|
|
public float ExchangeDuration = 3;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether or not the distance check is needed.
|
|
|
|
|
/// Good for BRPED.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>
|
|
|
|
|
/// I fucking hate BRPED and if you ever add it
|
|
|
|
|
/// i will personally kill your dog.
|
|
|
|
|
/// </remarks>
|
|
|
|
|
[DataField("doDistanceCheck")]
|
|
|
|
|
public bool DoDistanceCheck = true;
|
|
|
|
|
|
|
|
|
|
[DataField("exchangeSound")]
|
|
|
|
|
public SoundSpecifier ExchangeSound = new SoundPathSpecifier("/Audio/Items/rped.ogg");
|
|
|
|
|
|
2023-11-27 22:12:34 +11:00
|
|
|
public EntityUid? AudioStream;
|
2022-11-14 11:36:13 -08:00
|
|
|
}
|