Files
tbd-station-14/Content.Server/Disposal/Tube/DisposalTubeComponent.cs
metalgearsloth 63dfd21b14 Predict dumping (#32394)
* Predict dumping

- This got soaped really fucking hard.
- Dumping is predicted, this required disposals to be predicte.d
- Disposals required mailing (because it's tightly coupled), and a smidge of other content systems.
- I also had to fix a compnetworkgenerator issue at the same time so it wouldn't mispredict.

* Fix a bunch of stuff

* nasty merge

* Some reviews

* Some more reviews while I stash

* Fix merge

* Fix merge

* Half of review

* Review

* re(h)f

* lizards

* feexes

* feex
2025-04-19 16:20:40 +10:00

39 lines
1.0 KiB
C#

using Content.Server.Disposal.Unit;
using Content.Shared.Damage;
using Robust.Shared.Audio;
using Robust.Shared.Containers;
namespace Content.Server.Disposal.Tube;
[RegisterComponent]
[Access(typeof(DisposalTubeSystem), typeof(DisposableSystem))]
public sealed partial class DisposalTubeComponent : Component
{
[DataField]
public string ContainerId = "DisposalTube";
[ViewVariables]
public bool Connected;
[DataField]
public SoundSpecifier ClangSound = new SoundPathSpecifier("/Audio/Effects/clang.ogg", AudioParams.Default.WithVolume(-5f));
/// <summary>
/// Container of entities that are currently inside this tube
/// </summary>
[ViewVariables]
public Container Contents = default!;
/// <summary>
/// Damage dealt to containing entities on every turn
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public DamageSpecifier DamageOnTurn = new()
{
DamageDict = new()
{
{ "Blunt", 0.0 },
}
};
}