* The all-in-one hacking solution The thinking man's lockpick The iconic EMAG * emagged medbay's stasis bed * left med, emagged sec' apc * went back to chem, emagged the dispenser * emagged the fax while i was there * had a donut while waiting for emag to charge * i broke into the bridge then announced 'mandatory johnson inspection in medical' * get system instead of dependency * feedback * net suggestion Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> * use EnsureComp and import NetworkedComponent --------- Co-authored-by: deltanedas <user@zenith> Co-authored-by: deltanedas <deltanedas@laptop> Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
35 lines
1004 B
C#
35 lines
1004 B
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>
|
|
/// 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;
|
|
}
|
|
}
|