Re-organize all projects (#4166)
This commit is contained in:
30
Content.Server/Disposal/Tube/DisposalTubeSystem.cs
Normal file
30
Content.Server/Disposal/Tube/DisposalTubeSystem.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using Content.Server.Disposal.Tube.Components;
|
||||
using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Server.Disposal.Tube
|
||||
{
|
||||
public sealed class DisposalTubeSystem : EntitySystem
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
SubscribeLocalEvent<DisposalTubeComponent, PhysicsBodyTypeChangedEvent>(BodyTypeChanged);
|
||||
}
|
||||
|
||||
public override void Shutdown()
|
||||
{
|
||||
base.Shutdown();
|
||||
|
||||
UnsubscribeLocalEvent<DisposalTubeComponent, PhysicsBodyTypeChangedEvent>();
|
||||
}
|
||||
|
||||
private static void BodyTypeChanged(
|
||||
EntityUid uid,
|
||||
DisposalTubeComponent component,
|
||||
PhysicsBodyTypeChangedEvent args)
|
||||
{
|
||||
component.AnchoredChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user