2021-06-09 22:19:39 +02:00
|
|
|
|
using Content.Server.Disposal.Tube.Components;
|
2021-05-13 02:05:46 +02:00
|
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
|
namespace Content.Server.Disposal.Tube
|
2021-05-13 02:05:46 +02:00
|
|
|
|
{
|
|
|
|
|
|
public sealed class DisposalTubeSystem : EntitySystem
|
|
|
|
|
|
{
|
|
|
|
|
|
public override void Initialize()
|
|
|
|
|
|
{
|
|
|
|
|
|
base.Initialize();
|
|
|
|
|
|
|
|
|
|
|
|
SubscribeLocalEvent<DisposalTubeComponent, PhysicsBodyTypeChangedEvent>(BodyTypeChanged);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private static void BodyTypeChanged(
|
|
|
|
|
|
EntityUid uid,
|
|
|
|
|
|
DisposalTubeComponent component,
|
|
|
|
|
|
PhysicsBodyTypeChangedEvent args)
|
|
|
|
|
|
{
|
|
|
|
|
|
component.AnchoredChanged();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|