Files
tbd-station-14/Content.Server/Recycling/Components/RecyclerComponent.cs
2022-11-25 20:00:41 +11:00

42 lines
1.2 KiB
C#

using Content.Shared.Recycling;
using Robust.Shared.Audio;
namespace Content.Server.Recycling.Components
{
// TODO: Add sound and safe beep
[RegisterComponent]
[Access(typeof(RecyclerSystem))]
public sealed class RecyclerComponent : Component
{
[Dependency] private readonly IEntityManager _entMan = default!;
[DataField("enabled")]
public bool Enabled;
/// <summary>
/// Whether or not sentient beings will be recycled
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("safe")]
internal bool Safe = true;
/// <summary>
/// The percentage of material that will be recovered
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("efficiency")]
internal float Efficiency = 0.25f;
/// <summary>
/// Default sound to play when recycling
/// </summary>
[ViewVariables(VVAccess.ReadWrite)] [DataField("sound")]
public SoundSpecifier? Sound = new SoundPathSpecifier("/Audio/Effects/saw.ogg");
// Ratelimit sounds to avoid spam
public TimeSpan LastSound;
public int ItemsProcessed;
}
}