Remove usages of AnchoredChangedMessage.

It was a component message which is now deprecated.
This commit is contained in:
Pieter-Jan Briers
2021-05-13 02:05:46 +02:00
parent 4903c3bbc6
commit 251df93b71
16 changed files with 225 additions and 75 deletions

View File

@@ -0,0 +1,30 @@
using Content.Server.GameObjects.Components.Disposal;
using Robust.Shared.GameObjects;
namespace Content.Server.GameObjects.EntitySystems.Disposal
{
public sealed class DisposalMailingUnitSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<DisposalMailingUnitComponent, PhysicsBodyTypeChangedEvent>(BodyTypeChanged);
}
public override void Shutdown()
{
base.Shutdown();
UnsubscribeLocalEvent<DisposalMailingUnitComponent, PhysicsBodyTypeChangedEvent>();
}
private static void BodyTypeChanged(
EntityUid uid,
DisposalMailingUnitComponent component,
PhysicsBodyTypeChangedEvent args)
{
component.UpdateVisualState();
}
}
}