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

@@ -445,7 +445,7 @@ namespace Content.Server.GameObjects.Components.Disposal
_tag = tag;
}
private void UpdateVisualState()
public void UpdateVisualState()
{
UpdateVisualState(false);
}
@@ -620,10 +620,6 @@ namespace Content.Server.GameObjects.Components.Disposal
Remove(msg.Entity);
break;
case AnchoredChangedMessage:
UpdateVisualState();
break;
case PowerChangedMessage powerChanged:
PowerStateChanged(powerChanged);
break;

View File

@@ -194,7 +194,7 @@ namespace Content.Server.GameObjects.Components.Disposal
appearance.SetData(DisposalTubeVisuals.VisualState, state);
}
private void AnchoredChanged()
public void AnchoredChanged()
{
if (!Owner.TryGetComponent(out PhysicsComponent? physics))
{
@@ -267,10 +267,6 @@ namespace Content.Server.GameObjects.Components.Disposal
_lastClang = _gameTiming.CurTime;
SoundSystem.Play(Filter.Pvs(Owner), _clangSound, Owner.Transform.Coordinates);
break;
case AnchoredChangedMessage:
AnchoredChanged();
break;
}
}

View File

@@ -382,7 +382,7 @@ namespace Content.Server.GameObjects.Components.Disposal
}
}
private void UpdateVisualState()
public void UpdateVisualState()
{
UpdateVisualState(false);
}
@@ -547,10 +547,6 @@ namespace Content.Server.GameObjects.Components.Disposal
Remove(msg.Entity);
break;
case AnchoredChangedMessage:
UpdateVisualState();
break;
case PowerChangedMessage powerChanged:
PowerStateChanged(powerChanged);
break;